Re: [AD] About kryten2's bug |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
> I've attached another patch (grabber.diff) which does that. It doesn't add > the flag to the dat properties because I think this would break backward > compatibility. Am I wrong ? Revised version that adds a '-transparency' option to the command line dat utility. I've uploaded a bitmap to demonstrate the benefits of the new COLORCONV_KEEP_TRANS flag combined with the modified quantize.c code: http://www.multimania.com/ebotcazou/pink2.zip Load the bitmap in the grabber then grab a palette: only index 0 is pink-colored. Grab a bitmap and reduce it to 8-bit: not very nice ! Then enable the 'dither' option, grab and reduce again: much better but a narrow blue strip now infringes upon the pink (transparent) strip. Then enable the 'preserve transparency' option: the pink strip is now untouched. -- Eric Botcazou ebotcazou@xxxxxxxxxx
Attachment:
grabber2.zip
Description: Zip compressed data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |