Hi,

Hal V. Engel wrote:

I need to do some design work and also figure out what libraries will best serve my needs. One thing I would like to find is a library that supports loading image data of any type (with in reason jpeg, tiff, bmp, png...) into a buffer and that has functions for getting the rgb values for each pixel in the buffer as well as functions that will tell me things like the color depth and size of the image. It would also be great if this library was commonly available, widely used and it must be cross platform capable (Unix, BSD, Linux, Windows and Mac). I would also like it to be light weight. Anyone have any ideas about possible candidates that I can look into?

You might find the image loading code from my PhotoPrint application useful (for reference if nothing else!)

http://www.blackfiveservices.co.uk/PhotoPrint/About.shtml

The "ImageSource" class and subclasses are wrappers for various image libraries (libjpeg, libtiff, libpnm, a simple BMP loader and a GS wrapper for PS/PDF). It won't allow you to detect the image's bit depth; instead it promotes all data to 16-bit.

PNG is not yet supported, but if GdkPixBuf if available it can use that to load "alien" formats.

I don't know you're reading the image data, but my loaders aren't really intended for random access - they're optimised for sequential access of extremely large images with a small memory footprint.

Feel free to take a look and ask if you want anything clarified :)

All the best,
--
Alastair M. Robinson


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to