Date: Wed, 8 Jun 2005 10:27:23 +0200 (CEST) From: skoe@nexgo.de Subject: Patch: Images with Alpha channel, 8bpp grayscale Here it is: This patch contains both changes, Alpha channel and greyscale (didn't want to seperate the patch again). These are the changes in the order of appearance: - removed the palette building for 8bpp without palette, because this indicates a greyscale now - moved up the clipping - the calculations are not needed if the pixel won't be set later - (the endian fix didn't change, only it's indentation) - Always use GdFindColor instead of the switch - that may be a bit slower but it's smaller. Inlining is compilers work :-) - Alpha stuff - Greyscale stuff Beware: This patch should have a good review, I didn't check many combinations of endian, bpp and graphic formats. Concerning fltk: I'll have to ask my company first. The code is LGPL and they only need to publish it to people who also got the binaries... I'll be careful with this copyright stuff. With regards, Thomas Machen Sie aus 14 Cent spielend bis zu 100 Euro! Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot. http://www.arcor.de/rd/emf-gaming-1 filename: patch-8bpp-greyscale-32bpp-alpha.diff