[android-developers] Re: Live Wallpaper canvas gradient banding

2011-04-20 Thread DH
Thanks Dianne, that solved my png banding issue. On Feb 23, 6:05 am, Dianne Hackborn wrote: > The canvas drawing into the live wallpaper is not ; the default is 565, > which yes will result in banding.  You can change the desired format with > the SurfaceHolder API. > > http://developer.andro

Re: [android-developers] Re: Live Wallpaper canvas gradient banding

2011-02-22 Thread Dianne Hackborn
The canvas drawing into the live wallpaper is not ; the default is 565, which yes will result in banding. You can change the desired format with the SurfaceHolder API. http://developer.android.com/reference/android/view/SurfaceHolder.html#setFormat(int)

Re: [android-developers] Re: Live Wallpaper canvas gradient banding

2011-02-22 Thread allandt bik-elliott (thefieldcomic.com)
the problem afaik is that the bitmap used in the canvas is argb_ which has quite a shallow pool of colours to choose from and to get a decent gradient you need argb_ or a decent amount of dithering - neither of which i'm achieving best a On 14 February 2011 23:13, Mark wrote: > I am als

[android-developers] Re: Live Wallpaper canvas gradient banding

2011-02-14 Thread Mark
I am also experiencing this issue. The code I am using to apply a gradient is as follows... Canvas DestinationCanvas = new Canvas(); DestinationCanvas.setBitmap(DestinationBitmap); //Gradient is going from very transparent black to fully black at the bottom GradientDrawable grad = new GradientDr