[]
Describes the interior of a graphics shape composed of figures and paths.
public class Region
Initializes a new instance of the Region class with explicitly provided fill mode.
public Region(FillMode fillMode, params IFigure[] figures)
fillMode FillModeSpecifies how the interior of closed figures is filled.
figures IFigure[]The array of figures to be added to the region.
Initializes a new instance of the Region class.
public Region(GraphicsPath path, bool cloneFigures = true)
path GraphicsPathThe path to be added to the region.
cloneFigures boolIndicates if the source path figures should be cloned before adding to the new region.
Initializes a new instance of the Region class with the alternate fill mode.
public Region(params IFigure[] figures)
figures IFigure[]The array of figures to be added to the region.
Creates a deep copy of the Region.
public Region Clone()
Combines this region with a GraphicsPath.
public Region CombineWithPath(GraphicsPath inputPath, RegionCombineMode combineMode, bool cloneInputPath = true)
inputPath GraphicsPathThe GraphicsPath to combine with this region.
combineMode RegionCombineModeThe type of combine operation to perform.
cloneInputPath boolIndicates if the input region should be cloned before combining.
The actual region that is being combined with this instance.
Combines this region with a GraphicsPath.
public Region CombineWithPath(GraphicsPath inputPath, RegionCombineMode combineMode, Matrix3x2 inputPathTransform)
inputPath GraphicsPathThe GraphicsPath to combine with this region.
combineMode RegionCombineModeThe type of combine operation to perform.
inputPathTransform System.Numerics.Matrix3x2The transform to apply to inputPath before combining.
The actual region that is being combined with this instance.
Combines this region with the specified region.
public Region CombineWithRegion(Region inputRegion, RegionCombineMode combineMode, bool cloneInputRegion = true)
inputRegion RegionThe region to combine with this instance.
combineMode RegionCombineModeThe type of combine operation to perform.
cloneInputRegion boolIndicates if the input region should be cloned before combining.
A copy of the input region that is being combined with this instance.
Combines this region with the specified region.
public Region CombineWithRegion(Region inputRegion, RegionCombineMode combineMode, Matrix3x2 inputRegionTransform)
inputRegion RegionThe region to combine with this instance.
combineMode RegionCombineModeThe type of combine operation to perform.
inputRegionTransform System.Numerics.Matrix3x2The transform to apply to inputRegion before combining.
A copy of the input region that is being combined with this instance.
Creates a transformed copy of the Region.
public Region TransformRegion(Matrix3x2 worldTransform)
worldTransform System.Numerics.Matrix3x2The transformation to apply.