AlphaBlend not working?

BlitzMax Forums/BlitzMax Programming/AlphaBlend not working?

Drekinn(Posted 2008) [#1]
Setting the blend mode to AlphaBlend is not producing the desired results: In my program have employed a variety of png images with semi-transparent drop shadows, though the inclusion of SetBlend ALPHABLEND treats the images as if MaskBlend mode is enabled (ie. the semi-transparent pixels are opaque, the images displaying with sharp jagged edges).

What's up with that?


tonyg(Posted 2008) [#2]
Can you post the code with an example PNG? I'm assuming you have a transparent background to your png rather than a masked color?


Drekinn(Posted 2008) [#3]
Ahh, I've just discovered that said problem images are showing with opaque pixels because (seemingly) multiple calls are being made to DrawImage and thus the semi-transparent pixels are layering upon each other, causing the opaque, jagged edges. Hmm... now why might that be happening...
Thanks for the assistance anyway tonyg. ;)