First of all thanks for your response ! If people that tried to help me here looked at the attached files on my first post they could see a small program to test and a patch that applied to Fl_JPEG_IMage and Fl_PNG_Image works but produce the images shown on the screenshots.
My implementation is close to the one you've offered, it only do not swap the rgb colors like you do, that means Fl_Image have the rgb colors in a different order than expected by libjpeg ? I looked at how the image is converted from JPEG to Fl_Image and at first it doesn't seem to be reversed. I'll try swap the colors. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

