Tuesday, November 29, 2011

[android-developers] ICS Hardware acceleration blurs 9-patch images

Posting here for discussion and to save others time if they run into this. Basically 9-patch images with hardware acceleration may be blurry (even when they're not scaled/stretched).
Screenshot demonstrating the problem here: http://teslacoilsw.com/tmp/hw_accel_9patch.png (First set of RGBK lines are hardware accelerated and blurry, second set is software and not blurry. Same 9-patch image is being displayed in views the same size.)  1) Create a 9patch image with sharp edges. 2) Display in a hardware accelerated view. 3) Notice that the sharp edges are blurred. 4) Disable hardware acceleration 5) Notice the sharp edges are preserved  Expect sharp edges to be preserved regardless of hardware acceleration or software acceleration.  Tested on GSM Galaxy Nexus.


You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment