다음을 통해 공유


Canvas.QuickReject Method

Definition

Overloads

QuickReject(Path)

Return true if the specified path, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(RectF)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(Path, Canvas+EdgeType)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(RectF, Canvas+EdgeType)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(Single, Single, Single, Single)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(Single, Single, Single, Single, Canvas+EdgeType)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(Path)

Return true if the specified path, after being transformed by the current matrix, would lie completely outside of the current clip.

[Android.Runtime.Register("quickReject", "(Landroid/graphics/Path;)Z", "GetQuickReject_Landroid_graphics_Path_Handler", ApiSince=30)]
public virtual bool QuickReject (Android.Graphics.Path path);
[<Android.Runtime.Register("quickReject", "(Landroid/graphics/Path;)Z", "GetQuickReject_Landroid_graphics_Path_Handler", ApiSince=30)>]
abstract member QuickReject : Android.Graphics.Path -> bool
override this.QuickReject : Android.Graphics.Path -> bool

Parameters

path
Path

The path to compare with the current clip

Returns

true if the path (transformed by the canvas' matrix) does not intersect with the canvas' clip

Attributes

Remarks

Return true if the specified path, after being transformed by the current matrix, would lie completely outside of the current clip. Call this to check if an area you intend to draw into is clipped out (and therefore you can skip making the draw calls). Note: for speed it may return false even if the path itself might not intersect the clip (i.e. the bounds of the path intersects, but the path does not).

Java documentation for android.graphics.Canvas.quickReject(android.graphics.Path).

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

QuickReject(RectF)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

[Android.Runtime.Register("quickReject", "(Landroid/graphics/RectF;)Z", "GetQuickReject_Landroid_graphics_RectF_Handler", ApiSince=30)]
public virtual bool QuickReject (Android.Graphics.RectF rect);
[<Android.Runtime.Register("quickReject", "(Landroid/graphics/RectF;)Z", "GetQuickReject_Landroid_graphics_RectF_Handler", ApiSince=30)>]
abstract member QuickReject : Android.Graphics.RectF -> bool
override this.QuickReject : Android.Graphics.RectF -> bool

Parameters

rect
RectF

the rect to compare with the current clip

Returns

true if the rect (transformed by the canvas' matrix) does not intersect with the canvas' clip

Attributes

Remarks

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip. Call this to check if an area you intend to draw into is clipped out (and therefore you can skip making the draw calls).

Java documentation for android.graphics.Canvas.quickReject(android.graphics.RectF).

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

QuickReject(Path, Canvas+EdgeType)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

[Android.Runtime.Register("quickReject", "(Landroid/graphics/Path;Landroid/graphics/Canvas$EdgeType;)Z", "GetQuickReject_Landroid_graphics_Path_Landroid_graphics_Canvas_EdgeType_Handler")]
public virtual bool QuickReject (Android.Graphics.Path path, Android.Graphics.Canvas.EdgeType type);
[<Android.Runtime.Register("quickReject", "(Landroid/graphics/Path;Landroid/graphics/Canvas$EdgeType;)Z", "GetQuickReject_Landroid_graphics_Path_Landroid_graphics_Canvas_EdgeType_Handler")>]
abstract member QuickReject : Android.Graphics.Path * Android.Graphics.Canvas.EdgeType -> bool
override this.QuickReject : Android.Graphics.Path * Android.Graphics.Canvas.EdgeType -> bool

Parameters

path
Path

The path to compare with the current clip

type
Canvas.EdgeType

Canvas EdgeType AA if the path should be considered antialiased, since that means it may affect a larger area (more pixels) than non-antialiased (Canvas EdgeType BW).

Returns

true if the rect (transformed by the canvas' matrix) does not intersect with the canvas' clip

Attributes

Remarks

Java documentation for android.graphics.Canvas.quickReject(float, float, float, float).

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

QuickReject(RectF, Canvas+EdgeType)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

[Android.Runtime.Register("quickReject", "(Landroid/graphics/RectF;Landroid/graphics/Canvas$EdgeType;)Z", "GetQuickReject_Landroid_graphics_RectF_Landroid_graphics_Canvas_EdgeType_Handler")]
public virtual bool QuickReject (Android.Graphics.RectF rect, Android.Graphics.Canvas.EdgeType type);
[<Android.Runtime.Register("quickReject", "(Landroid/graphics/RectF;Landroid/graphics/Canvas$EdgeType;)Z", "GetQuickReject_Landroid_graphics_RectF_Landroid_graphics_Canvas_EdgeType_Handler")>]
abstract member QuickReject : Android.Graphics.RectF * Android.Graphics.Canvas.EdgeType -> bool
override this.QuickReject : Android.Graphics.RectF * Android.Graphics.Canvas.EdgeType -> bool

Parameters

rect
RectF

the rect to compare with the current clip

type
Canvas.EdgeType

Canvas EdgeType AA if the path should be considered antialiased, since that means it may affect a larger area (more pixels) than non-antialiased (Canvas EdgeType BW).

Returns

true if the rect (transformed by the canvas' matrix) does not intersect with the canvas' clip

Attributes

Remarks

Java documentation for android.graphics.Canvas.quickReject(float, float, float, float).

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

QuickReject(Single, Single, Single, Single)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

[Android.Runtime.Register("quickReject", "(FFFF)Z", "GetQuickReject_FFFFHandler", ApiSince=30)]
public virtual bool QuickReject (float left, float top, float right, float bottom);
[<Android.Runtime.Register("quickReject", "(FFFF)Z", "GetQuickReject_FFFFHandler", ApiSince=30)>]
abstract member QuickReject : single * single * single * single -> bool
override this.QuickReject : single * single * single * single -> bool

Parameters

left
Single

The left side of the rectangle to compare with the current clip

top
Single

The top of the rectangle to compare with the current clip

right
Single

The right side of the rectangle to compare with the current clip

bottom
Single

The bottom of the rectangle to compare with the current clip

Returns

true if the rect (transformed by the canvas' matrix) does not intersect with the canvas' clip

Attributes

Remarks

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip. Call this to check if an area you intend to draw into is clipped out (and therefore you can skip making the draw calls).

Java documentation for android.graphics.Canvas.quickReject(float, float, float, float).

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

QuickReject(Single, Single, Single, Single, Canvas+EdgeType)

Return true if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

[Android.Runtime.Register("quickReject", "(FFFFLandroid/graphics/Canvas$EdgeType;)Z", "GetQuickReject_FFFFLandroid_graphics_Canvas_EdgeType_Handler")]
public virtual bool QuickReject (float left, float top, float right, float bottom, Android.Graphics.Canvas.EdgeType type);
[<Android.Runtime.Register("quickReject", "(FFFFLandroid/graphics/Canvas$EdgeType;)Z", "GetQuickReject_FFFFLandroid_graphics_Canvas_EdgeType_Handler")>]
abstract member QuickReject : single * single * single * single * Android.Graphics.Canvas.EdgeType -> bool
override this.QuickReject : single * single * single * single * Android.Graphics.Canvas.EdgeType -> bool

Parameters

left
Single

The left side of the rectangle to compare with the current clip

top
Single

The top of the rectangle to compare with the current clip

right
Single

The right side of the rectangle to compare with the current clip

bottom
Single

The bottom of the rectangle to compare with the current clip

type
Canvas.EdgeType

Canvas EdgeType AA if the path should be considered antialiased, since that means it may affect a larger area (more pixels) than non-antialiased (Canvas EdgeType BW).

Returns

true if the rect (transformed by the canvas' matrix) does not intersect with the canvas' clip

Attributes

Remarks

Java documentation for android.graphics.Canvas.quickReject(float, float, float, float).

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