Just my guess:

the first image looks like classic swap of red and blue channels, check the 
order you read/write bytes from/to memory (RGB vs BGR)
The second might involve padding, check your d() of the images, looks like 3/4 
byte mismatch.

R.

On 12/05/2011 16:56, Domingo Alvarez Duarte wrote:
> Hello !
> 
> I need a way to encode Fl_Images to PNG or JPEG, I looked at various places 
> and made the skeleton code but I'm getting strange results.
> 
> It seems that some colors are inverted or missing on jpg images and on png 
> they seen to skip dome colors.
> 
> 
> Attached is a fluid project and a patch to add a static method "encode" to 
> Fl_PNG_Image and Fl_JPEG_Image, when they work properly I propose then to be 
> added to
> official fltk distribution.
> 
> I appreciate any help !

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to