Ruben Zilibowitz wrote:
> I'm trying to load in 256-colour images so I can access the pixmap data. The 
> problem is that Fl_PNG_Image is converting the images to full colour 24-bit 
> images internally so I lose the information I want.
> 
> I've noticed that Fl_GIF_Image loads the images as proper 8-bit images. 
> Therefore I can't understand why this is not true for Fl_PNG_Image or 
> Fl_BMP_Image.

The short reason is that it is easier to support and more efficient
to draw grayscale/RGB than indexed color images.

We could certainly look at supporting this in FLTK 1.3, but IMHO it
isn't worth the effort given that the image classes are provided to
display images and not as a general-purpose imaging interface.  If
you need the raw indexed data, you are probably better off using
libpng directly (which is always available to FLTK applications...)

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to