Android Guides | Samples

Android.Graphics.Paint.Dither Property

Helper for getFlags(), returning true if DITHER_FLAG bit is set Dithering affects how colors that are higher precision than the device are down-sampled.

Syntax

[get: Android.Runtime.Register("isDither", "()Z", "GetIsDitherHandler")]
[set: Android.Runtime.Register("setDither", "(Z)V", "GetSetDither_ZHandler")]
public Boolean Dither { get; set; }

Remarks

Get method documentation[Android Documentation]
Helper for getFlags(), returning true if DITHER_FLAG bit is set Dithering affects how colors that are higher precision than the device are down-sampled. No dithering is generally faster, but higher precision colors are just truncated down (e.g. 8888 -> 565). Dithering tries to distribute the error inherent in this process, to reduce the visual artifacts.

Set method documentation[Android Documentation]
Helper for setFlags(), setting or clearing the DITHER_FLAG bit Dithering affects how colors that are higher precision than the device are down-sampled. No dithering is generally faster, but higher precision colors are just truncated down (e.g. 8888 -> 565). Dithering tries to distribute the error inherent in this process, to reduce the visual artifacts.

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1