Bearbeiten

Freigeben über


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)
IsComplex
IsDisposed

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

(Inherited from SKNativeObject)
IsEmpty
IsRect
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(SKPath)

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

Contains(SKPointI)

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

Contains(SKRectI)

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

Contains(SKRegion)

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

CreateClipIterator(SKRectI)
CreateRectIterator()
CreateSpanIterator(Int32, Int32, Int32)
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.

Dispose(Boolean)

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

(Inherited from SKObject)
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.

DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)
GetBoundaryPath()
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.

QuickContains(SKRectI)
QuickReject(SKPath)
QuickReject(SKRectI)
QuickReject(SKRegion)
SetEmpty()
SetPath(SKPath, SKRegion)

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

SetPath(SKPath)

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

SetRect(SKRectI)

Set this region to the specified rectangle.

SetRects(SKRectI[])
SetRegion(SKRegion)

Set this region to the specified region.

Translate(Int32, Int32)

Applies to