Hi, I am a little confused about this. I guess sane_read could return multiple scanlines, the number of bytes returned is in len. The width of the image is in parm.pixels_per_line, the height of the image is in parm.lines, parm.bytes_per_line could be the same as parm.pixels_per_line or parm.pixels_per_line*3, is this correct? Thanks, Peter