lundi 21 novembre 2016

Apply smoothing to circle drawn with setPIxel() method

I have drawn a 45 bit circle with the setPixel() method and aligned a number of them to draw a diagonal line on a bitmap.

The result is fine when testing but when I test in HTML the line is jagged.

Zooming in and out again improves smoothing so I added to scale the bitmap at the end of my code.

myBitmap.scaleX = myBitmap.scaleY = .99;

This works. I think this is forcing the hardware acceleration but I would like a proper and more efficient method.

Aucun commentaire:

Enregistrer un commentaire