Png-Alphachannel does not work.

BlitzMax Forums/BlitzMax Programming/Png-Alphachannel does not work.

Hi

I don't know, why, but all my Png's, I save with Photoshop, won't work in Blitzmax. They use the Alpha-Channel for transparency, of course. Here is an Example:


Well, the strange thing is, that it isn't displayed correct when rotated or drawn at float-positions. Take a look at this:


Graphics 800, 600, 0

test=LoadImage("hammer.png")
SetBlend ALPHABLEND
MidHandleImage test

While Not KeyHit(KEY_ESCAPE)
Cls

angle:+1
SetRotation angle
DrawImage test, 100, 100

Flip
Wend



Why the hell doesn't the Alpha-Channel work properly? It's a regular, Non-Interlanced Image, I saved with photoshop, there shouldn't be any problem.