Condividi tramite


Drawable.TransparentRegion Property

Definition

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

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

Property Value

Returns null if the Drawables has no transparent region to report, else a Region holding the parts of the Drawable's bounds that are transparent.

Attributes

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.

Java documentation for android.graphics.drawable.Drawable.getTransparentRegion().

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