PixelOffsetMode enumeration

Applies to: desktop apps only

The PixelOffsetMode enumeration specifies the pixel offset mode of a Graphics object. This enumeration is used by the Graphics::GetPixelOffsetMode and Graphics::SetPixelOffsetMode methods of the Graphics class.

Syntax

typedef enum  {
  PixelOffsetModeInvalid       = QualityModeInvalid,
  PixelOffsetModeDefault       = QualityModeDefault,
  PixelOffsetModeHighSpeed     = QualityModeLow,
  PixelOffsetModeHighQuality   = QualityModeHigh,
  PixelOffsetModeNone          = QualityModeHigh + 1,
  PixelOffsetModeHalf          = QualityModeHigh + 2 
} PixelOffsetMode;

Constants

PixelOffsetModeInvalid

Used internally.

PixelOffsetModeDefault

Equivalent to PixelOffsetModeNone.

PixelOffsetModeHighSpeed

Equivalent to PixelOffsetModeNone.

PixelOffsetModeHighQuality

Equivalent to PixelOffsetModeHalf.

PixelOffsetModeNone

Indicates that pixel centers have integer coordinates.

PixelOffsetModeHalf

Indicates that pixel centers have coordinates that are half way between integer values.

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).

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

See also

Graphics::GetPixelOffsetMode
Graphics::SetPixelOffsetMode

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show: