Ugly problem with alpha images!

BlitzMax Forums/BlitzMax Programming/Ugly problem with alpha images!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

OK, I've ran into the same problem. My artist sent me some text and when drawn at non-integer coords, OR when scaled it looks crap (see the black outline on the tops or sides of letters).

Take a look:



Here's the code:

Strict
Graphics 600,400

Local image:TImage=LoadImage("play.png")

SetClsColor 200,200,200
Cls

SetBlend AlphaBlend
DrawImage image,10,10

DrawImage image,300,10.5

DrawImage image,10.5,200

SetScale 1,1.5
DrawImage image,300,200


Flip

While Not KeyHit(KEY_ESCAPE)
Wend


Here's how I drew the 4 images:

1) (top left) integer coords
2) (top right) fractional Y coord
3) (bottom left) fractional X coord
4) (bottom right) integer coords but scaled to 1.5 in Y. Notice how the uglyness is really obvious!

As sswift says, turning off filtered image sorts it out but the scale ones loop rubbish (blocky)

I'm gonna have to check out this defringe thing now.