Skip to main content
Participating Frequently
June 23, 2011
Question

Stretched bitmaps blurred when rendered using GPU on iOS, how to avoid?

  • June 23, 2011
  • 1 reply
  • 1086 views

Hi,

in a project of mine (targeting iPhone 4) I'm using pixel art. To show it properly I stretch the bitmap using scaleX/scaleY. However, when rendering using GPU the bitmaps get blurred, ruining the clear pixel art effect that I am after. Rendering using CPU does not blur the bitmaps, but is slower.

Any ideas on how to tell the renderer not to blur bitmaps?

There was a similar questions raised in another thread ( http://forums.adobe.com/thread/866712 ) but it derailed into a benchmarking discussion.

Thank you in advance.

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
June 23, 2011

How much the GPU will smooth things is partly down to the stage quality. Try:

stage.quality = "low";

at the start of your movie, see if that's enough to make the GPU antialias less. Otherwise, use AIR 2.7, and then CPU mode ought to be fast enough for you.

jpeitzAuthor
Participating Frequently
June 23, 2011

I'm afraid setting the quality to LOW does not help with the blurring. It actually doesn't change anything that I can see.

Already using 2.7 and so far I'm getting more speed with the GPU. I plan to show _a lot_ of sprites.

x_a_n_d_e_r
Participating Frequently
June 30, 2011

Hi jpeitz,

Found a solution for it?