PixelOffsetModefunction
Specifies the pixel offset mode. This enumeration is used by the **GdipGetPixelOffsetMode** and **GdipSetPixelOffsetMode** methods of the **Graphics** class.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Parameters
| Name | Description | |
|---|---|---|
PixelOffsetModeInvalid | -1 | |
PixelOffsetModeDefault | 0 | |
PixelOffsetModeHighSpeed | 1 | |
PixelOffsetModeHighQuality | 2 | |
PixelOffsetModeNone | 3 | |
PixelOffsetModeHalf | 4 |
Description
The PixelOffsetMode enumeration specifies the pixel offset mode. This enumeration is used by the GdipGetPixelOffsetMode and GdipSetPixelOffsetMode methods of the Graphics class.
Remarks
Consider the pixel in the upper-left corner of an image with address (0, 0). With PixelOffsetModeNone, the pixel covers the area between –0.5 and 0.5 in both the x and y directions; that is, the pixel center is at (0, 0). With PixelOffsetModeHalf, the pixel covers the area between 0 and 1 in both the x and y directions; that is, the pixel center is at (0.5, 0.5).
Reference
- Documented in Graphics/GdiPlus Flat Api/GdiPlus Enumerations.md
- Topic: GdiPlus Enumerations