Skip to main content
Participating Frequently
Jun 23, 2011 7:51 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Colin Holgate
Inspiring
Jun 23, 2011 12:23 PM UTC

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.

Translate
jpeitzAuthor
Participating Frequently
Jun 23, 2011 12:53 PM UTC

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.

Translate
x_a_n_d_e_r
Participating Frequently
Jun 30, 2011 11:49 AM UTC

Hi jpeitz,

Found a solution for it?

Translate