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(SKPath)

Creates a new region using the area described by the path.

SKRegion(SKRectI)

Creates a new region using the area described by the rectangle.

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)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
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 SKRegion and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

Intersects(SKPath)

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

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(SKPath, SKRegionOperation)

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

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