PixelOffsetMode

References
public enum PixelOffsetMode
Enumeration of the pixel offset modes of a Graphics
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

NameValueDescription
None0Specifies that pixels will not be offset and be relative to the center of each pixel.
Half1Specifies that pixels are offset by half a pixel (-0.5) in both the horizontal and vertical axes. Use for high speed.
Aligned2Similar to None, specifies that pixels will be relative to the center of each pixel, but only for line drawing.