다음을 통해 공유


Canvas.GetClipBounds(Rect) Method

Definition

Return the bounds of the current clip (in local coordinates) in the bounds parameter, and return true if it is non-empty.

[Android.Runtime.Register("getClipBounds", "(Landroid/graphics/Rect;)Z", "GetGetClipBounds_Landroid_graphics_Rect_Handler")]
public virtual bool GetClipBounds (Android.Graphics.Rect bounds);
[<Android.Runtime.Register("getClipBounds", "(Landroid/graphics/Rect;)Z", "GetGetClipBounds_Landroid_graphics_Rect_Handler")>]
abstract member GetClipBounds : Android.Graphics.Rect -> bool
override this.GetClipBounds : Android.Graphics.Rect -> bool

Parameters

bounds
Rect

Return the clip bounds here.

Returns

true if the current clip is non-empty.

Attributes

Remarks

Return the bounds of the current clip (in local coordinates) in the bounds parameter, and return true if it is non-empty. This can be useful in a way similar to quickReject, in that it tells you that drawing outside of these bounds will be clipped out.

Java documentation for android.graphics.Canvas.getClipBounds(android.graphics.Rect).

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