Table of Contents

Class ReportShapeRegion

Namespace
DocWright.Reporting.Pagination
Assembly
DocWright.Reporting.dll

An area made of closed contours of straight segments, filled together by the nonzero winding rule: a QR Code's dark modules.

public sealed class ReportShapeRegion : ReportShape
Inheritance
ReportShapeRegion
Inherited Members

Remarks

Draw it as one filled path — one PDF path, one SVG path element with a subpath per contour, one GraphicsPath — never as one fill per contour. Contours meet edge to edge, and it is filling them together that makes a shared edge vanish instead of leaving a hairline where two antialiased edges overlap.

Contours run clockwise on the page (y downwards). A contour may sit inside another and run the other way, anticlockwise, which cuts it out of the one around it — a map polygon's hole — so a region is filled by the nonzero rule and not by even-odd. A region is never stroked; an outline is a separate ReportShapePath.

Constructors

ReportShapeRegion(IReadOnlyList<IReadOnlyList<ReportShapePoint>>, ColorRgb)

Initializes an opaque region filled by the nonzero winding rule.

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.

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.

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.

Properties

Contours

Gets the contours, each closed back to its first point, relative to the item's top-left corner.

Kind

Gets what kind of shape this is.