GpPixelOffsetMode enumeration

Specifies the pixel offset mode of a Graphics object.

The setting is the PixelOffsetMode property of Graphics. Take the pixel in the upper left corner of an image, with the address (0, 0). With PixelOffsetModeNone it covers the area from -0.5 to 0.5 in both directions, so its centre is at (0, 0). With PixelOffsetModeHalf it covers the area from 0 to 1, so its centre is at (0.5, 0.5). The first four members have the values of GpQualityMode.

Member Value Description
PixelOffsetModeInvalid -1 Used internally.
PixelOffsetModeDefault 0 Same as PixelOffsetModeNone.
PixelOffsetModeHighSpeed 1 Same as PixelOffsetModeNone.
PixelOffsetModeHighQuality 2 Same as PixelOffsetModeHalf.
PixelOffsetModeNone 3 The centres of pixels have integer coordinates.
PixelOffsetModeHalf 4 The centres of pixels have coordinates half way between integers.

Used by

See Also