편집

다음을 통해 공유


SKCanvas.QuickReject Method

Definition

Overloads

QuickReject(SKPath)

Checks to see if the specified path, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(SKRect)

Checks to see if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

QuickReject(SKPath)

Checks to see if the specified path, after being transformed by the current matrix, would lie completely outside of the current clip.

public bool QuickReject (SkiaSharp.SKPath path);

Parameters

path
SKPath

The path to compare with the current clip.

Returns

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

Remarks

Call this to check if an area you intend to draw into is clipped out (and therefore you can skip making the draw calls).

Applies to

QuickReject(SKRect)

Checks to see if the specified rectangle, after being transformed by the current matrix, would lie completely outside of the current clip.

public bool QuickReject (SkiaSharp.SKRect rect);

Parameters

rect
SKRect

The rectangle to compare with the current clip.

Returns

Returns true if the rectangle (transformed by the canvas' matrix) does not intersect with the canvas' clip.

Remarks

Call this to check if an area you intend to draw into is clipped out (and therefore you can skip making the draw calls).

Applies to