Qbasicnews.com

Full Version: Transparency Problem with GFXLIB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having a slight problem with the TRANS operator on PUT in 32 bit mode. Really, it might just be a problem with my bmp, but I'm not so sure. The bmp is a 24 bit bmp using the translucent color for the parts I need to mask, but when I loaded it up in my program (in both 24 and 32 bit mode) some of the pixels are changed or something. It's anything next to grays or certain colors that seem to be switched. They look the same as the translucent color, but point shows them to have a different value than 65281. So when I get/put it, only the ones that loaded properly are being left out while some pink areas still show. If this makes any sense at all, can I get a hand? I'm not real sure how to describe it beyond this.. maybe it's a Windows Paint problem?

[EDIT:]
I fixed the problem by setting my res to 16 bit mode, but I'm still wondering why it wouldn't work right in 24/32.
I think the transparent color for 16 and 32 bit arew different. Try to find out in the GFXlib.doc
In 16 as in 32bit mode, gfxlib expects the trans color to be RGB(255,0,255). Any slight variation in this will make the color to appear and not to be skipped... Are you sure your BMP has all pink areas with an uniform (255,0,255) color? When loading a 24bpp BMP while in 16bpp mode, the colors loose precision, so what appeared to be (254,0,255) in 32bpp, in 16bpp will be reported to be (255,0,255) by POINT for example.
I had the same problem, but in 0.11 everything worked.
heh heh... magic pink! :lol: