> You were right. I think my transparency caused the problem 
> somehow. When I added a solid background, it was golden, but 
> with a varying alpha levels all throughout the image it made 
> the image look absolutely horrible.
> If I need to use transparency in the future, how do I avoid this?

This sounds suspiciously like bug #1949

http://www.fltk.org/str.php?L1949


There's an issue in the configure script where it fails to set config.h
so that it knows to handle the alpha channel in PNG images.

The STR discusses the fix, but the quick'n'dirty fix is to edit the
config.h in your fltk build and change the lines as follows:


/* #undef HAVE_PNG_GET_VALID */
/* #undef HAVE_PNG_SET_TRNS_TO_ALPHA */
#define HAVE_PNG_GET_VALID 1
#define HAVE_PNG_SET_TRNS_TO_ALPHA 1


Then rebuild your fltk lib and the PNG's should all work nicely. I hope!

-- 
Ian





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

Reply via email to