> I'm not happy - it was all for saving a picture from bitmap > handle. Now > I'm able to write the jpeg, but the picture is upside down > and there is > a change of colours - yellow is turned to green, green to > yellow, red to > blue and blue looks black. ;o( > > Do you think, it is a problem of compression, or do I need to > change the > bitmap? The colour problem likely is a problem of bitmap palette? But > saving upside down is strange - saving the bitmap directly works fine.
This sounds a bit like you have your R, G, B values in the wrong order. You are on a windows platform I think? IIRC, Windows does order it's RGB values as BGR or something, so maybe all that is required is to flip them back - I can't remember if my real code does that or not... I've mainly switched to using libpng instead for screen grabs these days, and it actually provides a method for flipping BGR to RGB when you write a file (added, I think, to fix this situation...) The upside down thing is, I think, normal? The display origin is in the top left, the image origin is in the bottom left, so the image is mirrored vertically. If that is what's happening, it's easy enough to flip it when you save. SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

