odd bitmaps

Monkey Targets Forums/Flash/odd bitmaps

skid(Posted 2011) [#1]
Turns out, Flash doesn't use mip mapping on odd size bitmaps!

For rotating or sprites with sub-pixel smoothness that do not scale, I can recommend using double resolution source images of odd width and height. Center pixel of odd width and height being ideal handle and drawing code like this:

DrawImage src,x#,y#,rotation#,0.5,0.5

HTML5 seems to round x,y to nearest pixel so comparison not possible.


Foppy(Posted 2011) [#2]
I noticed that in Flash, images seem not to be drawn at floating-point coordinates, but at integer coordinates.

In HTML5, they do seem to be drawn at non-whole coordinates. The result is that animations are much smoother in HTML5 than in Flash.

My images are not odd-sized.

Can this be a related issue?