SKCanvas.QuickReject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
SkiaSharp