Roshan wrote:
For example, a .bmp (grayscale image) file has first 54 bytes as
header (IIRC, correct me, if I'm wrong). Somewhere within that,
there's the height and width of the image.
Following the 54 bytes are the pieces of image data containing
integers between 0 - 255 representing grayscale colors.
Don't know about .bmp image files, But simple dependency check for
'ristretto'(Default image display app in XFCE) reveals that there are
two well known libraries available for image processing,
$ ldd $(which ristretto) | less
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007f3ff6675000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f3ff6450000)
Google tells lot about these two libraries,
http://en.wikipedia.org/wiki/Libjpeg
http://www.libpng.org/pub/png/libpng.html
I hope you will get the api documentation easily and start writing your
code.
Cheers,
Mohan R
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc