module ChunkyPNG::Canvas::PNGEncoding
def each_scanline(&block)
- Yieldparam: line - An line of fixnums representing pixels
Other tags:
- Yield: - Yields the scanlines of this image one by one.
def each_scanline(&block) for line_no in 0...height do scanline = pixels[width * line_no, width] yield(scanline) end end