Turning Off Antialiasing?

BlitzMax Forums/BlitzMax Programming/Turning Off Antialiasing?

zoqfotpik(Posted 2013) [#1]
How do I turn antialiasing off on draws? I want crisp pixels.

The application is a graphics bitmap generator for a game written in Monkey. Anywhere aliasing occurs on the it is being blended with the background as opposed to generating alphablended transparency as intended and I need that to not happen. The result is my sprite with pink halos wherever there is aliasing on the edges.

An example of what I'm getting is here.




Derron(Posted 2013) [#2]
a) generate bitmaps with alpha channel
b) did you tried SetBlend MaskBlend ?
c) only draw at INT-positions to avoid fractured numbers


bye
Ron


ImaginaryHuman(Posted 2013) [#3]
if there is an image option like FILTEREDIMAGE then you need to remove that.


zoqfotpik(Posted 2013) [#4]
My blend is ALPHABLEND. That's probably why. I had done spritesheet generators before but never with DrawLine so I guess that's why I never ran into this.

Thanks, gents.

MASKBLEND fixed it. My previous generators had all been using orthogonal blocks (large square pixels) and I had never noticed a problem since straight lines don't alias.