# File lib/pixels.rb, line 553 553: def get_row(y) 554: bytes = read_row_bytes(y) 555: row = [] 556: for offset in (0..@width*@bytes_per_pixel-1).step(@bytes_per_pixel) 557: v, = (bytes[offset,3] + "\x00").unpack("V") 558: row << (v & 0x00ffffff) 559: end 560: return row 561: end