Share via


Paint.Dither Property

Definition

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. -or- Helper for setFlags(), setting or clearing the DITHER_FLAG bit Dithering affects how colors that are higher precision than the device are down-sampled.

public bool Dither { [Android.Runtime.Register("isDither", "()Z", "")] get; [Android.Runtime.Register("setDither", "(Z)V", "GetSetDither_ZHandler")] set; }
[<get: Android.Runtime.Register("isDither", "()Z", "")>]
[<set: Android.Runtime.Register("setDither", "(Z)V", "GetSetDither_ZHandler")>]
member this.Dither : bool with get, set

Property Value

true if the dithering bit is set in the paint's flags.

Attributes

Remarks

Property getter 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.

Java documentation for android.graphics.Paint.isDither().

Property setter 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.

Java documentation for android.graphics.Paint.setDither(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to