Android Guides | Samples

Android.Graphics.Bitmap.EraseColor Method

Fills the bitmap's pixels with the specified _Color.

Syntax

[Android.Runtime.Register("eraseColor", "(I)V", "")]
public Void EraseColor (Int32 c)

Parameters

c

Exceptions

TypeReason
IllegalStateExceptionif the bitmap is not mutable.

Remarks

Fills the bitmap's pixels with the specified _Color.

[Android Documentation]

Requirements

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