SKRegion Class

Definition

Encapsulates the geometric region used to specify clipping areas for drawing.

public class SKRegion : SkiaSharp.SKObject
Inheritance

Constructors

SKRegion()

Creates an empty region.

SKRegion(SKRegion)

Creates a new region by copying an existing region.

Properties

Bounds

Gets the bounds of this region.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)

Methods

Contains(Int32, Int32)

Check to see if the specified coordinates are completely inside the current region.

Contains(SKPointI)

Check to see if the specified coordinates are completely inside the current region.

Contains(SKRegion)

Check to see if the specified region is completely inside the current region.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKObject and optionally releases the managed resources.

(Inherited from SKObject)
Intersects(SKRectI)

Check to see if the specified rectangle intersects with the current region.

Intersects(SKRegion)

Check to see if the specified region intersects with the current region.

Op(Int32, Int32, Int32, Int32, SKRegionOperation)

Set this region to the result of applying the operation to this region and the specified rectangle.

Op(SKRectI, SKRegionOperation)

Set this region to the result of applying the operation to this region and the specified rectangle.

Op(SKRegion, SKRegionOperation)

Set this region to the result of applying the operation to this region and the specified region.

SetPath(SKPath)

Set this region to the area described by the path, clipped to the current region.

SetPath(SKPath, SKRegion)

Set this region to the area described by the path, clipped.

SetRect(SKRectI)

Set this region to the specified rectangle.

SetRegion(SKRegion)

Set this region to the specified region.

Applies to