Remarks: The pixel offset mode applies to all Draw* and Fill* graphics operations such as Graphics.DrawLine(Pen, PointF, PointF), Graphics.DrawRectangle(Pen, RectangleF), etc.
Enum values
| Name | Value | Description |
|---|---|---|
| None | 0 | Specifies that pixels will not be offset and be relative to the center of each pixel. |
| Half | 1 | Specifies that pixels are offset by half a pixel (-0.5) in both the horizontal and vertical axes. Use for high speed. |
| Aligned | 2 | Similar to None, specifies that pixels will be relative to the center of each pixel, but only for line drawing. |