[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Region

Class Region

Namespace
GrapeCity.Documents.Imaging
Assembly
GcDocs.Imaging.dll

Describes the interior of a graphics shape composed of figures and paths.

public class Region
Inheritance
object
Region
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Region(FillMode, params IFigure[])

Initializes a new instance of the Region class with explicitly provided fill mode.

public Region(FillMode fillMode, params IFigure[] figures)

Parameters

fillMode FillMode

Specifies how the interior of closed figures is filled.

figures IFigure[]

The array of figures to be added to the region.

Region(GraphicsPath, bool)

Initializes a new instance of the Region class.

public Region(GraphicsPath path, bool cloneFigures = true)

Parameters

path GraphicsPath

The path to be added to the region.

cloneFigures bool

Indicates if the source path figures should be cloned before adding to the new region.

Region(params IFigure[])

Initializes a new instance of the Region class with the alternate fill mode.

public Region(params IFigure[] figures)

Parameters

figures IFigure[]

The array of figures to be added to the region.

Methods

Clone()

Creates a deep copy of the Region.

public Region Clone()

Returns

Region

CombineWithPath(GraphicsPath, RegionCombineMode, bool)

Combines this region with a GraphicsPath.

public Region CombineWithPath(GraphicsPath inputPath, RegionCombineMode combineMode, bool cloneInputPath = true)

Parameters

inputPath GraphicsPath

The GraphicsPath to combine with this region.

combineMode RegionCombineMode

The type of combine operation to perform.

cloneInputPath bool

Indicates if the input region should be cloned before combining.

Returns

Region

The actual region that is being combined with this instance.

CombineWithPath(GraphicsPath, RegionCombineMode, Matrix3x2)

Combines this region with a GraphicsPath.

public Region CombineWithPath(GraphicsPath inputPath, RegionCombineMode combineMode, Matrix3x2 inputPathTransform)

Parameters

inputPath GraphicsPath

The GraphicsPath to combine with this region.

combineMode RegionCombineMode

The type of combine operation to perform.

inputPathTransform System.Numerics.Matrix3x2

The transform to apply to inputPath before combining.

Returns

Region

The actual region that is being combined with this instance.

CombineWithRegion(Region, RegionCombineMode, bool)

Combines this region with the specified region.

public Region CombineWithRegion(Region inputRegion, RegionCombineMode combineMode, bool cloneInputRegion = true)

Parameters

inputRegion Region

The region to combine with this instance.

combineMode RegionCombineMode

The type of combine operation to perform.

cloneInputRegion bool

Indicates if the input region should be cloned before combining.

Returns

Region

A copy of the input region that is being combined with this instance.

CombineWithRegion(Region, RegionCombineMode, Matrix3x2)

Combines this region with the specified region.

public Region CombineWithRegion(Region inputRegion, RegionCombineMode combineMode, Matrix3x2 inputRegionTransform)

Parameters

inputRegion Region

The region to combine with this instance.

combineMode RegionCombineMode

The type of combine operation to perform.

inputRegionTransform System.Numerics.Matrix3x2

The transform to apply to inputRegion before combining.

Returns

Region

A copy of the input region that is being combined with this instance.

TransformRegion(Matrix3x2)

Creates a transformed copy of the Region.

public Region TransformRegion(Matrix3x2 worldTransform)

Parameters

worldTransform System.Numerics.Matrix3x2

The transformation to apply.

Returns

Region