Michael,

Interesting. I actually got curious about this.

I added a call to drawBitmapMesh, stretching the first column (out of 4), and mapping the rest one to one.

As you can see in this link, the bitmap is still perfect where it's not stretched.

http://xmages.net/storage/10/1/0/a/1/upload/fe1ce910.png

Stretching is another matter, and it would be a good idea to pick a font size for the off-screen bitmap so that drawBitmapMesh only shrinks, never enlarges, any bitmap area.

The small difference you are seeing (I am seeing it too in the link above) is due to my using ARGB_4444 for the offscreen bitmap. I just verified that ARGB_8888 gives exact match (as it should).

However, you're seeing distortion even when there is no mapping.

So, for your reference, I pasted my code here (really simple, really):

http://pastebin.com/5e1C5irq

Hope you can spot a difference somewhere.

-- Kostya

25.12.2010 22:52, MichaelF ?????:
Hi again,
I see. Indeed, drawBitmap produces very good results (although I can see a difference on my N1 when using a very large font size). The mess seems to be caused by drawBitmapMesh (even with the mesh vertices unchanged from the original ones). The result is as follows: http://i.imgur.com/pCqGT.png <http://i.imgur.com/pCqGT.png>. And yes I am using the anti-alias flag.
Michael
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to