PixelOffset Enumeration

Represents pixel offset strategies for the DrawingOptions.ScanPathPixelOffset and DrawingOptions.DrawPathPixelOffset properties.
See the Remarks section of the DrawingOptions.ScanPathPixelOffset and DrawingOptions.DrawPathPixelOffset properties for details and image examples.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public enum PixelOffset

Members

None0 When scanning the region of a path (see DrawingOptions.ScanPathPixelOffset), it specifies that the scanning of edges should be performed at the top of the pixels. When drawing a path (see DrawingOptions.DrawPathPixelOffset), it specifies that the points of the drawn path are not adjusted before applying the pen width.
Half1 When scanning the region of a path (see DrawingOptions.ScanPathPixelOffset), it specifies that the scanning of edges should be performed at the center of the pixels. When drawing a path (see DrawingOptions.DrawPathPixelOffset), it specifies that the points of the drawn path are shifted by a half pixel before applying the pen width.

See Also