If I use general View than dithering can be enabled by using following
code:
getWindow().setFormat(PixelFormat.RGBA_8888);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);

But in SurfaceView that code does nothing. I tried to enable dithering
in other way:
surfaceHolder.setFormat(PixelFormat.RGBA_8888);
surfaceHolder.getSurface().setFlags(Surface.SURFACE_DITHER,
Surface.SURFACE_DITHER);

Function setFormat changes surface to 32bit but setFlags does
nothing.
I called other functions of Surface class and found out
that almost all of them do nothing. Is it possible to enable dithering
in Surface?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to