Android Guides | Samples

Android.Graphics.Drawables.Drawable.TransparentRegion Property

Returns a Region representing the part of the Drawable that is completely transparent.

Syntax

[get: Android.Runtime.Register("getTransparentRegion", "()Landroid/graphics/Region;", "GetGetTransparentRegionHandler")]
public virtual Region TransparentRegion { get; }

Remarks

Returns a Region representing the part of the Drawable that is completely transparent. This can be used to perform drawing operations, identifying which parts of the target will not change when rendering the Drawable. The default implementation returns null, indicating no transparent region; subclasses can optionally override this to return an actual Region if they want to supply this optimization information, but it is not required that they do so.

[Android Documentation]

Requirements

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