Constructor ReportShapeRegion
- Namespace
- DocWright.Reporting.Pagination
- Assembly
- DocWright.Reporting.dll
ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb)
Initializes an opaque region filled by the nonzero winding rule.
public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill)
Parameters
contoursIReadOnlyList<IReadOnlyList<ReportShapePoint>>The closed contours, relative to the owning item's top-left corner; copied.
fillColorRgbThe fill colour.
Exceptions
- ArgumentNullException
contoursor one of its contours is null.
ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb, byte)
Initializes a region whose fill has an opacity from 0 (transparent) to 255 (opaque), filled by the nonzero winding rule.
public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill, byte fillAlpha)
Parameters
contoursIReadOnlyList<IReadOnlyList<ReportShapePoint>>The closed contours, relative to the owning item's top-left corner; copied.
fillColorRgbThe fill colour.
fillAlphabyteThe fill's opacity.
Exceptions
- ArgumentNullException
contoursor one of its contours is null.
ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb, byte, ReportShapeGradient?)
Initializes a region that may be filled with a gradient rather than a flat colour (Phase 95): a map polygon whose style grades it, one gradient over all its contours, its holes cut out.
public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill, byte fillAlpha, ReportShapeGradient? gradient)
Parameters
contoursIReadOnlyList<IReadOnlyList<ReportShapePoint>>The closed contours, relative to the owning item's top-left corner; copied.
fillColorRgbThe fill colour; with a
gradient, the flat colour a consumer that cannot paint one falls back to.fillAlphabyteThe fill's opacity, the gradient's included.
gradientReportShapeGradientThe gradient the region is filled with, or null for the flat
fill.
Exceptions
- ArgumentNullException
contoursor one of its contours is null.
ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb, byte, ReportShapeGradient?, ReportShapeHatch?)
Initializes a region that may be filled with a hatch (Phase 96) or a gradient rather than a flat colour.
public ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>> contours, ColorRgb fill, byte fillAlpha, ReportShapeGradient? gradient, ReportShapeHatch? hatch)
Parameters
contoursIReadOnlyList<IReadOnlyList<ReportShapePoint>>The closed contours, relative to the owning item's top-left corner; copied.
fillColorRgbThe fill colour; with a gradient or a hatch, the flat colour a consumer that cannot paint one falls back to.
fillAlphabyteThe fill's opacity, the gradient's or the hatch's included.
gradientReportShapeGradientThe gradient the region is filled with, or null; ignored by a consumer when a hatch is set.
hatchReportShapeHatchThe hatch the region is filled with, or null.
Exceptions
- ArgumentNullException
contoursor one of its contours is null.