User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nano7mobile.blogspot.com/sitemap.xml Nano Mobile: [Q] Color bandings when use onDraw method in Engine class topic

[Q] Color bandings when use onDraw method in Engine class topic






Hi there,

i coded a small watchface for the SWR50, all is working as expected but the background image: i tried to use a 24-bit PNG image resource with
a gradient from dark gray to black, which shows a lot of color bandings. Same effect when using the Paint object to draw manually a gradient with these colors.
Have tried to setup the Painter with paint.setAntialias(true) with no luck and extracted the image resource via ((BitmapDrawable)getResources().getDrawable(int)). getBitmap()
also with no luck when tried to load the image resource with the static Bitmap.decodeResource(...) with ImageFormat set to ARGB_8888?!

Is there any solution to fix this annying bandings?






Aucun commentaire:

Enregistrer un commentaire