SKCanvas.ClipRect Method

Definition

Overloads

ClipRect(SKRect, SKClipOperation, Boolean)

Modify the current clip with the specified rectangle.

ClipRect(SKRect, SKRegionOperation, Boolean)

Modify the current clip with the specified rectangle.

ClipRect(SKRect, SKClipOperation, Boolean)

Modify the current clip with the specified rectangle.

public void ClipRect (SkiaSharp.SKRect rect, SkiaSharp.SKClipOperation operation = SkiaSharp.SKClipOperation.Intersect, bool antialias = false);

Parameters

rect
SKRect

The rectangle to combine with the current clip.

operation
SKClipOperation

The clip operator to apply to the current clip.

antialias
Boolean

Whether or not the clip should be antialiased.

ClipRect(SKRect, SKRegionOperation, Boolean)

Warning

This API is now obsolete.

Modify the current clip with the specified rectangle.

[System.Obsolete("Use ClipRect(SKRect, SKClipOperation, bool) instead.", true)]
public void ClipRect (SkiaSharp.SKRect rect, SkiaSharp.SKRegionOperation operation, bool antialias = false);

Parameters

rect
SKRect

The rectangle to combine with the current clip.

operation
SKRegionOperation

The region operator to apply to the current clip.

antialias
Boolean

Whether or not the clip should be antialiased.

Attributes

Applies to