Help Center
Help CenterAfxNovaGraphics

GdiPlus Enumerations

Members (62)

BrushTypeIndicates the type of brush.ColorPredefined ARGB colors. Represent an ARGB (alpha, red, green, blue) color.ColorAdjustTypeSpecifies which GDI+ objects use color-adjustment information. You can adjust the colors in a rendered image using the **ImageAttributes** functions. There are five adjustment categories: default, bitmap, brush, pen, and text.ColorChannelFlagsSpecifies individual channels in the CMYK (cyan, magenta, yellow, black) color space. This enumeration is used by the **GdipSetImageAttributesOutputChannel** function.ColorMatrixFlagsSpecifies the types of images and colors that will be affected by the color and grayscale adjustment settings. It is used by the **GdipSetImageAttributesColorMatrix** function.ColorModeSpecifies two modes for color component values.CombineModeSpecifies how a new region is combined with an existing region.CompositingModeSpecifies how rendered colors are combined with background colors. This enumeration is used by the **GdipGetCompositingMode** and **GdipSetCompositingMode** functions.CompositingQualitySpecifies whether gamma correction is applied when colors are blended with background colors. This enumeration is used by the **GdipGetCompositingQuality** and **GdipSetCompositingQuality** functions.ConvertToEmfPlusFlagsConversion of Emf To Emf+ bits flags.CoordinateSpaceSpecifies coordinate spaces. This enumeration is used by the **GdipTransformPoints** and **GdipTransformPointsI** functions, which converts points from one coordinate space to another.CurveAdjustmentsBitmap adjustments.CurveChannelSpecifies which color channels are affected by a **ColorCurve** bitmap adjustment.CustomLineCapTypeSpecifies the type of custom line cap.DashCapSpecifies the type of graphic shape to use on both ends of each dash in a dashed line.DashStyleSpecifies the line style of a line drawn with a Microsoft Windows GDI+ pen. The line can be drawn by using one of several predefined styles or a custom style.DitherTypeIdentifies the available algorithms for dithering when a bitmap is converted.DriverStringOptionsSpecifies the spacing, orientation, and quality of the rendering for driver strings.EmfPlusRecordTypeIdentifies metafile record types used in Microsoft Windows Metafile Format (WMF), Enhanced Metafile (EMF), and EMF+ files.EmfToWmfBitsFlagsSpecifies options for the **GdipEmfToWmfBits** method, which converts an Enhanced Metafile (EMF) metafile to a Microsoft Windows Metafile Format (WMF) metafile.EmfTypeSpecifies the nature of the records that are placed in an Enhanced Metafile (EMF) file.EncoderParameterValueTypeSpecifies data types for image codec (encoder/decoder) parameters. An element of this enumeration is assigned to the Type data member of an **EncoderParameter** structure.EncoderValueSpecifies values that can be passed as arguments to image encoders.FillModeSpecifies how to fill areas that are formed when a path or curve intersects itself.FlushIntentionSpecifies when to flush the queue of graphics operations.FontStyleSpecifies the style of the typeface of a font. Styles can be combined.GenericFontFamilySpecifies the type of generic font family.HatchStyleSpecifies the hatch pattern used by a brush of type **HatchBrush**. The hatch pattern consists of a solid background color and lines drawn over the background.HistogramFormatSpecifies the number and type of histograms that represent the color channels of a bitmap. This enumeration is used with the **GdipBitmapGetHistogram** function.HotKeyPrefixSpecifies how to display hot keys. There are three options: do nothing, display hot keys underlined, and hide the hot key underlines.ImageCodecFlagsIndicates attributes of an image codec.ImageFlagsSpecifies the attributes of the pixel data contained in an image. The **GdipGetImageFlags** function returns an element of this enumeration.ImageLockModeSpecifies flags that are passed to the flags parameter of the **GdipBitmapLockBits** function. The GdipBitmapLockBits function locks a portion of an image so that you can read or write the pixel data.ImageTypeIndicates whether an image is a bitmap or a metafile. The **GdipGetImageType** function returns an element of this enumeration.InterpolationModeSpecifies the algorithm that is used when images are scaled or rotated. This enumeration is used by the **GdipGetInterpolationMode** and **GdipSetInterpolationMode** functions of the **Graphics** functions.ItemDataPositionUsed to specify the location of custom metadata in an image file.LinearGradientModeSpecifies the direction in which the change of color occurs for a linear gradient brush.LineCapSpecifies the type of graphic shape to use on the end of a line drawn with a Microsoft Windows GDI+ pen. The cap can be a square, circle, triangle, arrowhead, custom, or masked (hidden). End caps can also "anchor" the line by centering the cap at the end of the line.LineJoinSpecifies how to join two lines that are drawn by the same pen and whose ends meet. At the intersection of the two line ends, a line join makes the join look more continuous.MatrixOrderSpecifies the order of multiplication when a new matrix is multiplied by an existing matrix.MetafileFrameUnitSpecifies the order of multiplication when a new matrix is multiplied by an existing matrix.MetafileTypeSpecifies types of metafiles.ObjectTypeIndicates the object type value of an EMF+ record.PaletteFlagsIndicates attributes of the color data in a palette.PaletteTypeUsed by the **GdipInitializePalette** and **GdipBitmapConvertFormat** functions. The members of the enumeration identify several standard color palette formats.PathPointTypeIndicates point types and flags for the data points in a path. Bits 0 through 2 indicate the type of a point, and bits 3 through 7 hold a set of flags that specify attributes of a point.PenAlignmentSpecifies the alignment of a pen relative to the stroke that is being drawn.PenTypeIndicates the type of pattern, texture, or gradient that a pen draws.PixelOffsetModeSpecifies the pixel offset mode. This enumeration is used by the **GdipGetPixelOffsetMode** and **GdipSetPixelOffsetMode** methods of the **Graphics** class.QualityModeSpecifies the quality mode.RotateFlipTypeSpecifies the direction of an image's rotation and the axis used to flip the image.SmoothingModeSpecifies the type of smoothing (antialiasing) that is applied to lines and curves. This enumeration is used by the **GdipGetSmoothingMode** and **GdipSetSmoothingMode** functions.StatusIndicates the result of a Microsoft Windows GDI+ method call.StringAlignmentSpecifies how a string is aligned in reference to the bounding rectangle. A bounding rectangle is used to define the area in which the text displays.StringDigitSubstituteSpecifies how to substitute digits in a string according to a user's locale or language.StringFormatFlagsSpecifies text layout information (such as orientation and clipping) and display manipulations (such as ellipsis insertion, digit substitution, and representation of characters that are not supported by a font).StringTrimmingSpecifies how to trim characters from a string so that the string fits into a layout rectangle. The layout rectangle is used to position and size the display string.TestControlEnumUsed for internal testing of GDI+. Specifies changes in image-processing behavior.TextRenderingHintSpecifies the process used to render text. The process affects the quality of the text.UnitSpecifies the unit of measure for a given data type.WarpModeSpecifies warp modes that can be used to transform images.WrapModeSpecifies how repeated copies of an image are used to tile an area.

Documentation

NameDescription
BrushTypeIndicates the type of brush.
ColorPredefined ARGB colors. Represent an ARGB (alpha, red, green, blue) color.
ColorAdjustTypeSpecifies which GDI+ objects use color-adjustment information. You can adjust the colors in a rendered image using the ImageAttributes functions. There are five adjustment categories: default, bitmap, brush, pen, and text.
ColorChannelFlagsSpecifies individual channels in the CMYK (cyan, magenta, yellow, black) color space. This enumeration is used by the GdipSetImageAttributesOutputChannel function.
ColorMatrixFlagsSpecifies the types of images and colors that will be affected by the color and grayscale adjustment settings. It is used by the GdipSetImageAttributesColorMatrix function.
ColorModeSpecifies two modes for color component values.
CombineModeSpecifies how a new region is combined with an existing region.
CompositingModeSpecifies how rendered colors are combined with background colors. This enumeration is used by the GdipGetCompositingMode and GdipSetCompositingMode functions.
CompositingQualitySpecifies whether gamma correction is applied when colors are blended with background colors. This enumeration is used by the GdipGetCompositingQuality and GdipSetCompositingQuality functions.
ConvertToEmfPlusFlagsConversion of Emf To Emf+ bits flags.
CoordinateSpaceSpecifies coordinate spaces. This enumeration is used by the GdipTransformPoints and GdipTransformPointsI functions, which converts points from one coordinate space to another.
CurveAdjustmentsBitmap adjustments.
CurveChannelSpecifies which color channels are affected by a ColorCurve bitmap adjustment.
CustomLineCapTypeSpecifies the type of custom line cap.
DashCapSpecifies the type of graphic shape to use on both ends of each dash in a dashed line.
DashStyleSpecifies the line style of a line drawn with a Microsoft Windows GDI+ pen. The line can be drawn by using one of several predefined styles or a custom style.
DitherTypeIdentifies the available algorithms for dithering when a bitmap is converted.
DriverStringOptionsSpecifies the spacing, orientation, and quality of the rendering for driver strings.
EmfPlusRecordTypeIdentifies metafile record types used in Microsoft Windows Metafile Format (WMF), Enhanced Metafile (EMF), and EMF+ files.
EmfToWmfBitsFlagsSpecifies options for the GdipEmfToWmfBits method, which converts an Enhanced Metafile (EMF) metafile to a Microsoft Windows Metafile Format (WMF) metafile.
EmfTypeSpecifies the nature of the records that are placed in an Enhanced Metafile (EMF) file.
EncoderParameterValueTypeSpecifies data types for image codec (encoder/decoder) parameters. An element of this enumeration is assigned to the Type data member of an EncoderParameter structure.
EncoderValueSpecifies values that can be passed as arguments to image encoders.
FillModeSpecifies how to fill areas that are formed when a path or curve intersects itself.
FlushIntentionSpecifies when to flush the queue of graphics operations.
FontStyleSpecifies the style of the typeface of a font. Styles can be combined.
GenericFontFamilySpecifies the type of generic font family.
HatchStyleSpecifies the hatch pattern used by a brush of type HatchBrush. The hatch pattern consists of a solid background color and lines drawn over the background.
HistogramFormatSpecifies the number and type of histograms that represent the color channels of a bitmap. This enumeration is used with the GdipBitmapGetHistogram function.
HotKeyPrefixSpecifies how to display hot keys. There are three options: do nothing, display hot keys underlined, and hide the hot key underlines.
ImageCodecFlagsIndicates attributes of an image codec.
ImageFlagsSpecifies the attributes of the pixel data contained in an image. The GdipGetImageFlags function returns an element of this enumeration.
ImageLockModeSpecifies flags that are passed to the flags parameter of the GdipBitmapLockBits function. The GdipBitmapLockBits function locks a portion of an image so that you can read or write the pixel data.
ImageTypeIndicates whether an image is a bitmap or a metafile. The GdipGetImageType function returns an element of this enumeration.
InterpolationModeSpecifies the algorithm that is used when images are scaled or rotated. This enumeration is used by the GdipGetInterpolationMode and GdipSetInterpolationMode functions of the Graphics functions.
ItemDataPositionUsed to specify the location of custom metadata in an image file.
LinearGradientModeSpecifies the direction in which the change of color occurs for a linear gradient brush.
LineCapSpecifies the type of graphic shape to use on the end of a line drawn with a Microsoft Windows GDI+ pen. The cap can be a square, circle, triangle, arrowhead, custom, or masked (hidden). End caps can also "anchor" the line by centering the cap at the end of the line.
LineJoinSpecifies how to join two lines that are drawn by the same pen and whose ends meet. At the intersection of the two line ends, a line join makes the join look more continuous.
MatrixOrderSpecifies the order of multiplication when a new matrix is multiplied by an existing matrix.
MetafileFrameUnitSpecifies the order of multiplication when a new matrix is multiplied by an existing matrix.
MetafileTypeSpecifies types of metafiles.
ObjectTypeIndicates the object type value of an EMF+ record.
PaletteFlagsIndicates attributes of the color data in a palette.
PaletteTypeUsed by the GdipInitializePalette and GdipBitmapConvertFormat functions. The members of the enumeration identify several standard color palette formats.
PathPointTypeIndicates point types and flags for the data points in a path. Bits 0 through 2 indicate the type of a point, and bits 3 through 7 hold a set of flags that specify attributes of a point.
PenAlignmentSpecifies the alignment of a pen relative to the stroke that is being drawn.
PenTypeIndicates the type of pattern, texture, or gradient that a pen draws.
PixelOffsetModeSpecifies the pixel offset mode. This enumeration is used by the GdipGetPixelOffsetMode and GdipSetPixelOffsetMode methods of the Graphics class.
QualityModeSpecifies the quality mode.
RotateFlipTypeSpecifies the direction of an image's rotation and the axis used to flip the image.
SmoothingModeSpecifies the type of smoothing (antialiasing) that is applied to lines and curves. This enumeration is used by the GdipGetSmoothingMode and GdipSetSmoothingMode functions.
StatusIndicates the result of a Microsoft Windows GDI+ method call.
StringAlignmentSpecifies how a string is aligned in reference to the bounding rectangle. A bounding rectangle is used to define the area in which the text displays.
StringDigitSubstituteSpecifies how to substitute digits in a string according to a user's locale or language.
StringFormatFlagsSpecifies text layout information (such as orientation and clipping) and display manipulations (such as ellipsis insertion, digit substitution, and representation of characters that are not supported by a font).
StringTrimmingSpecifies how to trim characters from a string so that the string fits into a layout rectangle. The layout rectangle is used to position and size the display string.
TestControlEnumUsed for internal testing of GDI+. Specifies changes in image-processing behavior.
TextRenderingHintSpecifies the process used to render text. The process affects the quality of the text.
UnitSpecifies the unit of measure for a given data type.
WarpModeSpecifies warp modes that can be used to transform images.
WrapModeSpecifies how repeated copies of an image are used to tile an area.

BrushType

The BrushType enumeration indicates the type of brush. There are five types of brushes.

NameValueDescription
BrushTypeSolidColor0Indicates a brush of type SolidBrush. A solid brush paints a single, constant color that can be opaque or transparent.
BrushTypeHatchFill1Indicates a brush of type HatchBrush. A hatch brush paints a background and paints, over that background, a pattern of lines, dots, dashes, squares, crosshatch, or some variation of these. The hatch brush consists of two colors: one for the background and one for the pattern over the background. The color of the background is called the background color, and the color of the pattern is called the foreground color.
BrushTypeTextureFill2Indicates a brush of type TextureBrush. A texture brush paints an image. The image or texture is either a portion of a specified image or a scaled version of a specified image. The type of image (metafile or nonmetafile) determines whether the texture is a portion of the image or a scaled version of the image.
BrushTypePathGradient3Indicates a brush of type PathGradientBrush. A path gradient brush paints a color gradient in which the color changes from a center point outward to a boundary that is defined by a closed curve or path. The color gradient has one color at the center point and one or multiple colors at the boundary.
BrushTypeLinearGradient4Indicates a brush of type LinearGradientBrush. A linear gradient brush paints a color gradient in which the color changes evenly from the starting boundary line of the linear gradient brush to the ending boundary line of the linear gradient brush. The boundary lines of a linear gradient brush are two parallel straight lines. The color gradient is perpendicular to the boundary lines of the linear gradient brush, changing gradually across the stroke from the starting boundary line to the ending boundary line. The color gradient has one color at the starting boundary line and another color at the ending boundary line.

Color

Predefined ARGB colors. Represent an ARGB (alpha, red, green, blue) color.

NameValue
ARGB_AliceBlue&hFFF0F8FF
ARGB_AntiqueWhite&hFFFAEBD7
ARGB_Aqua&hFF00FFFF
ARGB_Aquamarine&hFF7FFFD4
ARGB_Azure&hFFF0FFFF
ARGB_Beige&hFFF5F5DC
ARGB_Bisque&hFFFFE4C4
ARGB_Black&hFF000000
ARGB_BlanchedAlmond&hFFFFEBCD
ARGB_Blue&hFF0000FF
ARGB_BlueViolet&hFF8A2BE2
ARGB_Brown&hFFA52A2A
ARGB_BurlyWood&hFFDEB887
ARGB_CadetBlue&hFF5F9EA0
ARGB_Chartreuse&hFF7FFF00
ARGB_Chocolate&hFFD2691E
ARGB_Coral&hFFFF7F50
ARGB_CornflowerBlue&hFF6495ED
ARGB_Cornsilk&hFFFFF8DC
ARGB_Crimson&hFFDC143C
ARGB_Cyan&hFF00FFFF
ARGB_DarkBlue&hFF00008B
ARGB_DarkCyan&hFF008B8B
ARGB_DarkGoldenrod&hFFB8860B
ARGB_DarkGray&hFFA9A9A9
ARGB_DarkGreen&hFF006400
ARGB_DarkKhaki&hFFBDB76B
ARGB_DarkMagenta&hFF8B008B
ARGB_DarkOliveGreen&hFF556B2F
ARGB_DarkOrange&hFFFF8C00
ARGB_DarkOrchid&hFF9932CC
ARGB_DarkRed&hFF8B0000
ARGB_DarkSalmon&hFFE9967A
ARGB_DarkSeaGreen&hFF8FBC8B
ARGB_DarkSlateBlue&hFF483D8B
ARGB_DarkSlateGray&hFF2F4F4F
ARGB_DarkTurquoise&hFF00CED1
ARGB_DarkViolet&hFF9400D3
ARGB_DeepPink&hFFFF1493
ARGB_DeepSkyBlue&hFF00BFFF
ARGB_DimGray&hFF696969
ARGB_DodgerBlue&hFF1E90FF
ARGB_Firebrick&hFFB22222
ARGB_FloralWhite&hFFFFFAF0
ARGB_ForestGreen&hFF228B22
ARGB_Fuchsia&hFFFF00FF
ARGB_Gainsboro&hFFDCDCDC
ARGB_GhostWhite&hFFF8F8FF
ARGB_Gold&hFFFFD700
ARGB_Goldenrod&hFFDAA520
ARGB_Gray&hFF808080
ARGB_Green&hFF008000
ARGB_GreenYellow&hFFADFF2F
ARGB_Honeydew&hFFF0FFF0
ARGB_HotPink&hFFFF69B4
ARGB_IndianRed&hFFCD5C5C
ARGB_Indigo&hFF4B0082
ARGB_Ivory&hFFFFFFF0
ARGB_Khaki&hFFF0E68C
ARGB_Lavender&hFFE6E6FA
ARGB_LavenderBlush&hFFFFF0F5
ARGB_LawnGreen&hFF7CFC00
ARGB_LemonChiffon&hFFFFFACD
ARGB_LightBlue&hFFADD8E6
ARGB_LightCoral&hFFF08080
ARGB_LightCyan&hFFE0FFFF
ARGB_LightGoldenrodYellow&hFFFAFAD2
ARGB_LightGray&hFFD3D3D3
ARGB_LightGreen&hFF90EE90
ARGB_LightPink&hFFFFB6C1
ARGB_LightSalmon&hFFFFA07A
ARGB_LightSeaGreen&hFF20B2AA
ARGB_LightSkyBlue&hFF87CEFA
ARGB_LightSlateGray&hFF778899
ARGB_LightSteelBlue&hFFB0C4DE
ARGB_LightYellow&hFFFFFFE0
ARGB_Lime&hFF00FF00
ARGB_LimeGreen&hFF32CD32
ARGB_Linen&hFFFAF0E6
ARGB_Magenta&hFFFF00FF
ARGB_Maroon&hFF800000
ARGB_MediumAquamarine&hFF66CDAA
ARGB_MediumBlue&hFF0000CD
ARGB_MediumOrchid&hFFBA55D3
ARGB_MediumPurple&hFF9370DB
ARGB_MediumSeaGreen&hFF3CB371
ARGB_MediumSlateBlue&hFF7B68EE
ARGB_MediumSpringGreen&hFF00FA9A
ARGB_MediumTurquoise&hFF48D1CC
ARGB_MediumVioletRed&hFFC71585
ARGB_MidnightBlue&hFF191970
ARGB_MintCream&hFFF5FFFA
ARGB_MistyRose&hFFFFE4E1
ARGB_Moccasin&hFFFFE4B5
ARGB_NavajoWhite&hFFFFDEAD
ARGB_Navy&hFF000080
ARGB_OldLace&hFFFDF5E6
ARGB_Olive&hFF808000
ARGB_OliveDrab&hFF6B8E23
ARGB_Orange&hFFFFA500
ARGB_OrangeRed&hFFFF4500
ARGB_Orchid&hFFDA70D6
ARGB_PaleGoldenrod&hFFEEE8AA
ARGB_PaleGreen&hFF98FB98
ARGB_PaleTurquoise&hFFAFEEEE
ARGB_PaleVioletRed&hFFDB7093
ARGB_PapayaWhip&hFFFFEFD5
ARGB_PeachPuff&hFFFFDAB9
ARGB_Peru&hFFCD853F
ARGB_Pink&hFFFFC0CB
ARGB_Plum&hFFDDA0DD
ARGB_PowderBlue&hFFB0E0E6
ARGB_Purple&hFF800080
ARGB_Red&hFFFF0000
ARGB_RosyBrown&hFFBC8F8F
ARGB_RoyalBlue&hFF4169E1
ARGB_SaddleBrown&hFF8B4513
ARGB_Salmon&hFFFA8072
ARGB_SandyBrown&hFFF4A460
ARGB_SeaGreen&hFF2E8B57
ARGB_SeaShell&hFFFFF5EE
ARGB_Sienna&hFFA0522D
ARGB_Silver&hFFC0C0C0
ARGB_SkyBlue&hFF87CEEB
ARGB_SlateBlue&hFF6A5ACD
ARGB_SlateGray&hFF708090
ARGB_Snow&hFFFFFAFA
ARGB_SpringGreen&hFF00FF7F
ARGB_SteelBlue&hFF4682B4
ARGB_Tan_&hFFD2B48C
ARGB_Teal&hFF008080
ARGB_Thistle&hFFD8BFD8
ARGB_Tomato&hFFFF6347
ARGB_Transparent_&h00FFFFFF
ARGB_Turquoise&hFF40E0D0
ARGB_Violet&hFFEE82EE
ARGB_Wheat&hFFF5DEB3
ARGB_White&hFFFFFFFF
ARGB_WhiteSmoke&hFFF5F5F5
ARGB_Yellow&hFFFFFF00
ARGB_YellowGreen&hFF9ACD32

ColorAdjustType

The ColorAdjustType enumeration specifies which GDI+ objects use color-adjustment information. You can adjust the colors in a rendered image using the ImageAttributes functions. There are five adjustment categories: default, bitmap, brush, pen, and text.

NameValueDescription
ColorAdjustTypeDefault0Specifies that color or grayscale adjustment applies to all categories that do not have adjustment settings of their own.
ColorAdjustTypeBitmap1Specifies that color or grayscale adjustment applies to bitmapped images.
ColorAdjustTypeBrush2Specifies that color or grayscale adjustment applies to brush operations in metafiles.
ColorAdjustTypePen3Specifies that color or grayscale adjustment applies to pen operations in metafiles.
ColorAdjustTypeText4Specifies that color or grayscale adjustment applies to text drawn in metafiles.
ColorAdjustTypeCount5Used internally to record the number of color adjustment types.
ColorAdjustTypeAny6Reserved.

ColorChannelFlags

Thee ColorChannelFlags enumeration specifies individual channels in the CMYK (cyan, magenta, yellow, black) color space. This enumeration is used by the GdipSetImageAttributesOutputChannel function.

NameValueDescription
ColorChannelFlagsC0Specifies the cyan color channel.
ColorChannelFlagsM1Specifies the magenta color channel.
ColorChannelFlagsY2Specifies the yellow color channel.
ColorChannelFlagsK3Specifies the black color channel.
ColorChannelFlagsLast4

ColorMatrixFlags

The ColorMatrixFlags enumeration specifies the types of images and colors that will be affected by the color and grayscale adjustment settings. It is used by the GdipSetImageAttributesColorMatrix function.

NameValueDescription
ColorMatrixFlagsDefault0Specifies that all color values (including grays) are adjusted by the same color-adjustment matrix.
ColorMatrixFlagsSkipGrays1Specifies that colors are adjusted but gray shades are not adjusted. A gray shade is any color that has the same value for its red, green, and blue components.
ColorMatrixFlagsAltGray2Specifies that colors are adjusted by one matrix and gray shades are adjusted by another matrix.

ColorMode

Specifies two modes for color component values.

NameValueDescription
ColorModeARGB320The integer values supplied are 32-bit values.
ColorModeARGB640The integer values supplied are 64-bit values.
Remarks

For computers with 32-bit integers, use Argb32Mode. For computers with 64-bit integers, use Argb64Mode.


CombineMode

The CombineMode enumeration specifies how a new region is combined with an existing region.

NameValueDescription
CombineModeReplace0Specifies that the existing region is replaced by the new region.
CombineModeIntersect1Specifies that the existing region is replaced by the intersection of itself and the new region.
CombineModeUnion2Specifies that the existing region is replaced by the union of itself and the new region.
CombineModeXor3Specifies that the existing region is replaced by the result of performing an XOR on the two regions. A point is in the XOR of two regions if it is in one region or the other but not in both regions.
CombineModeExclude4Specifies that the existing region is replaced by the portion of itself that is outside of the new region.
CombineModeComplement5Specifies that the existing region is replaced by the portion of the new region that is outside of the existing region.

CompositingMode

The CompositingMode enumeration specifies how rendered colors are combined with background colors. This enumeration is used by the GdipGetCompositingMode and GdipSetCompositingMode functions.

NameValueDescription
CompositingModeSourceOver0Specifies that when a color is rendered, it is blended with the background color. The blend is determined by the alpha component of the color being rendered.
CompositingModeSourceCopy0Specifies that when a color is rendered, it overwrites the background color. This mode cannot be used along with TextRenderingHintClearTypeGridFit.

CompositingQuality

The CompositingQuality enumeration specifies whether gamma correction is applied when colors are blended with background colors. This enumeration is used by the GdipGetCompositingQuality and GdipSetCompositingQuality functions.

NameValueDescription
CompositingQualityDefault0Specifies that gamma correction is not applied.
CompositingQualityHighSpeed1Specifies that gamma correction is not applied.
CompositingQualityHighQuality2Specifies that gamma correction is applied.
CompositingQualityGammaCorrected3Specifies that gamma correction is applied.
CompositingQualityAssumeLinear4Specifies that gamma correction is not applied.

ConvertToEmfPlusFlags

Conversion of Emf To Emf+ bits flags.

NameValueDescription
ConvertToEmfPlusFlagsDefault&h00000000Specifies the default conversion.
ConvertToEmfPlusFlagsRopUsed&H00000001Specifies that the source EMF metafile is embedded as a comment in the resulting WMF metafile.
ConvertToEmfPlusFlagsText&H00000002Specifies that the resulting WMF metafile is in the placeable metafile format; that is, it has the additional 22-byte header required by a placeable metafile.
ConvertToEmfPlusFlagsInvalidRecord&H00000004Specifies that the clipping region is stored in the metafile in the traditional way. If you do not set this flag, the GdipEmfToWmfBits function applies an optimization that stores the clipping region as a path and simulates clipping by using the XOR operator.

CoordinateSpace

The CoordinateSpace enumeration specifies coordinate spaces. This enumeration is used by the GdipTransformPoints function, which converts points from one coordinate space to another. For more information about coordinate spaces, see Types of Coordinate Systems.

NameValueDescription
CoordinateSpaceWorld0Specifies the world coordinate space.
CoordinateSpacePage1Specifies the page coordinate space.
CoordinateSpaceDevice2Specifies the device coordinate space.

CurveAdjustments

Bitmap adjustments-

NameValueDescription
AdjustExposure0Simulates increasing or decreasing the exposure of a photograph. When you set the adjustment member of a ColorCurveParams object to AdjustExposure, you should set the adjustValue member to an integer in the range -255 through 255. A value of 0 specifies no change in exposure. Positive values specify increased exposure and negative values specify decreased exposure.
AdjustDensity1Simulates increasing or decreasing the film density of a photograph. When you set the adjustment member of a ColorCurveParams object to AdjustDensity, you should set the adjustValue member to an integer in the range -255 through 255. A value of 0 specifies no change in density. Positive values specify increased density (lighter picture) and negative values specify decreased density (darker picture).
AdjustContrast2Increases or decreases the contrast of a bitmap. When you set the adjustment member of a ColorCurveParams object to AdjustContrast, you should set the adjustValue member to an integer in the range -100 through 100. A value of 0 specifies no change in contrast. Positive values specify increased contrast and negative values specify decreased contrast.
AdjustHighlight3Increases or decreases the value of a color channel if that channel already has a value that is above half intensity. You can use this adjustment to get more definition in the light areas of an image without affecting the dark areas. When you set the adjustment member of a ColorCurveParams object to AdjustHighlight, you should set the adjustValue member to an integer in the range -100 through 100. A value of 0 specifies no change. Positive values specify that the light areas are made lighter, and negative values specify that the light areas are made darker.
AdjustShadow4Increases or decreases the value of a color channel if that channel already has a value that is below half intensity. You can use this adjustment to get more definition in the dark areas of an image without affecting the light areas. When you set the adjustment member of a ColorCurveParams object to AdjustShadow, you should set the adjustValue member to an integer in the range -100 through 100. A value of 0 specifies no change. Positive values specify that the dark areas are made lighter, and negative values specify that the dark areas are made darker.
AdjustMidtone5Lightens or darkens an image. Color channel values in the middle of the intensity range are altered more than color channel values near the minimum or maximum intensity. You can use this adjustment to lighten (or darken) an image without loosing the contrast between the darkest and lightest portions of the image. When you set the adjustment member of a ColorCurveParams object to AdjustMidtone, you should set the adjustValue member to an integer in the range -100 through 100. A value of 0 specifies no change. Positive values specify that the midtones are made lighter, and negative values specify that the midtones are made darker.
AdjustWhiteSaturation6When you set the adjustment member of a ColorCurveParams object to AdjustWhiteSaturation, you should set the adjustValue member to an integer in the range 0 through 255. A value of t specifies that the interval [0, t] is mapped linearly to the interval [0, 255]. For example, if adjustValue is equal to 240, then color channel values in the interval [0, 240] are adjusted so that they spread out over the interval [0, 255]. Color channel values greater than 240 are set to 255.
AdjustBlackSaturation7When you set the adjustment member of a ColorCurveParams object to AdjustBlackSaturation, you should set the adjustValue member to an integer in the range 0 through 255. A value of t specifies that the interval [t, 255] is mapped linearly to the interval [0, 255]. For example, if adjustValue is equal to 15, then color channel values in the interval [15, 255] are adjusted so that they spread out over the interval [0, 255]. Color channel values less than 15 are set to 0.

To apply one of the eight adjustments to a bitmap, follow these steps.

  1. Create a ColorCurveParams structure, and set its adjustment member to one of the elements of the CurveAdjustments enumeration.
  2. Set the other two members (adjustValue and channel) of the ColorCurveParams structure.
  3. Pass the address of the ColorCurveParams structure to the GdipSetEffectParameters function.
  4. Call the GdipBitmapApplyEffect function.

CurveChannel

The CurveChannel enumeration specifies which color channels are affected by a ColorCurve bitmap adjustment.

NameValueDescription
CurveChannelAll0Specifies that the color adjustment applies to all channels.
CurveChannelRed1Specifies that the color adjustment applies only to the red channel.
CurveChannelGreen2Specifies that the color adjustment applies only to the green channel.
CurveChannelBlue2Specifies that the color adjustment applies only to the blue channel.

CustomLineCapType

Specifies the type of custom line cap. You would typically use this value when creating a new AdjustableArrowCap object or when setting a custom line cap for a Pen object in GDI+

NameValueDescription
CustomLineCapTypeDefault0Default custom line cap.
CustomLineCapTypeAdjustableArrow1Indicates that the line cap being defined is an adjustable arrow.

DashCap

Specifies the type of graphic shape to use on both ends of each dash in a dashed line.

NameValueDescription
DashCapFlat0Specifies a square cap that squares off both ends of each dash.
DashCapRound2Specifies a circular cap that rounds off both ends of each dash.
DashCapTriangle3Specifies a triangular cap that points both ends of each dash.

DashStyle

The DashStyle enumeration specifies the line style of a line drawn with a Windows GDI+ pen. The line can be drawn by using one of several predefined styles or a custom style.

NameValueDescription
DashStyleSolid0Specifies a solid line.
DashStyleDash1Specifies a dashed line.
DashStyleDot2Specifies a dotted line.
DashStyleDashDot3Specifies an alternating dash-dot line.
DashStyleDashDotDot4Specifies an alternating dash-dot-dot line.
DashStyleCustom5Specifies a user-defined, custom dashed line.
Remarks

A custom dashed line is created by calling the GdipSetPenDashArray function, which takes an array of values for the dash lengths and the space lengths.


DitherType

Identifies the available algorithms for dithering when a bitmap is converted.

Calling the GdipBitmapConvertFormat function of a Bitmap object changes the pixel format of that Bitmap. If the conversion results in a reduced bit depth (fewer bits per pixel), then certain colors in the original bitmap will be simulated by a dither (checkerboard) pattern made up of colors that are available in the new pixel format. The members of the DitherType enumeration identify the algorithms available for performing this dithering.

NameValueDescription
DitherTypeNone0No dithering is performed. Pixels in the source bitmap are mapped to the nearest color in the palette specified by the palette parameter of the GdipBitmapConvertFormat function. This algorithm can be used with any palette. If the palette specified by the palette parameter does not have one of the standard fixed formats listed in the PaletteType enumeration, pass PaletteTypeCustom to the palettetype parameter.
DitherTypeSolid1No dithering is performed. Pixels in the source bitmap are mapped to the nearest color in the palette specified by the palette parameter of the GdipBitmapConvertFormat function. This algorithm can be used with any palette. If the palette specified by the palette parameter does not have one of the standard fixed formats listed in the PaletteType enumeration, pass PaletteTypeCustom to the palettetype parameter.
DitherTypeOrdered4x42You can use this algorithm to perform dithering based on the colors in one of the standard fixed palettes. You can also use this algorithm to convert a bitmap to a 16-bits-per-pixel format that has no palette.
DitherTypeOrdered8x83Dithering is performed using the colors in one of the standard fixed palettes.
DitherTypeOrdered16x164Dithering is performed using the colors in one of the standard fixed palettes.
DitherTypeSpiral4x45Dithering is performed using the colors in one of the standard fixed palettes.
DitherTypeSpiral8x86Dithering is performed using the colors in one of the standard fixed palettes.
DitherTypeDualSpiral4x47Dithering is performed using the colors in one of the standard fixed palettes.
DitherTypeDualSpiral8x88Dithering is performed using the colors in one of the standard fixed palettes.
DitherTypeErrorDiffusion9Dithering is performed based on the palette specified by the palette parameter of the GdipBitmapConvertFormat function. This algorithm can be used with any palette. If the palette specified by the palette parameter does not have one of the standard fixed formats listed in the PaletteType enumeration, pass PaletteTypeCustom to the palettetype parameter.
DitherTypeMax10

DriverStringOptions

The DriverStringOptions enumeration specifies the spacing, orientation, and quality of the rendering for driver strings.

NameValueDescription
DriverStringOptionsCmapLookup1Specifies that the string array contains Unicode character values. If this flag is not set, each value in array is interpreted as an index to a font glyph that defines a character to be displayed.
DriverStringOptionsVertical2Specifies that the string is displayed vertically.
DriverStringOptionsRealizedAdvance4Specifies that the glyph positions are calculated from the position of the first glyph. If this flag is not set, the glyph positions are obtained from an array of coordinates.
DriverStringOptionsLimitSubpixel8Specifies that less memory should be used for cache of antialiased glyphs. This also produces lower quality. If this flag isn't set, more memory is used, but the quality is higher.

EmfPlusRecordType

The EmfPlusRecordType enumeration identifies metafile record types used in Windows Metafile Format (WMF), Enhanced Metafile (EMF), and EMF+ files. The elements of the EmfPlusRecordType enumeration come in three groups.

  • Elements in the first group have the prefix WmfRecordType and identity WMF records.
  • Elements in the second group have the prefix EmfRecordType and identify EMF records.
  • Elements in the third group have the prefix EmfPlusRecordType and identify EMF+ records.

WMF and EMF records can be displayed by Windows GDI+ and by Windows Graphics Device Interface (GDI). EMF+ records can be displayed by GDI+ but not by GDI.

Elements that have the WmfRecordType prefix are analogous to constants (defined in Wingdi.h) that have the prefix META_. For example, the element WmfRecordTypeSetBkColor is analogous to the constant META_SETBKCOLOR. For more information about WMF files, see Windows-Format Metafiles.

Elements that have the EmfRecordType prefix are analogous to constants (defined in Wingdi.h) that have the prefix EMR_. For example, the element EmfRecordTypePolygon is analogous to the constant EMR_POLYGON. For more information about EMR constants, see EMR.

Elements that have the EmfPlusRecordType prefix are specific to GDI+. Most of those elements correspond to methods of the Graphics class. The remaining elements identify the header, the end of the file, and other sections of the metafile. The Constants section of this topic shows the correspondence between the EMF+ record types and the methods of the Graphics class.

NameValueDescription
WmfRecordTypeSetBkColor66049
WmfRecordTypeSetBkMode65794
WmfRecordTypeSetMapMode65795
WmfRecordTypeSetROP265796
WmfRecordTypeSetRelAbs65797
WmfRecordTypeSetPolyFillMode65798
WmfRecordTypeSetStretchBltMode65799
WmfRecordTypeSetTextCharExtra65800
WmfRecordTypeSetTextColor66057
WmfRecordTypeSetTextJustification66058
WmfRecordTypeSetWindowOrg66059
WmfRecordTypeSetWindowExt66060
WmfRecordTypeSetViewportOrg66061
WmfRecordTypeSetViewportExt66062
WmfRecordTypeOffsetWindowOrg66063
WmfRecordTypeScaleWindowExt66576
WmfRecordTypeOffsetViewportOrg66065
WmfRecordTypeScaleViewportExt66578
WmfRecordTypeLineTo66067
WmfRecordTypeMoveTo66068
WmfRecordTypeExcludeClipRect66581
WmfRecordTypeIntersectClipRect66582
WmfRecordTypeArc67607
WmfRecordTypeEllipse66584
WmfRecordTypeFloodFill66585
WmfRecordTypePie67610
WmfRecordTypeRectangle66587
WmfRecordTypeRoundRect67100
WmfRecordTypePatBlt67101
WmfRecordTypeSaveDC65566
WmfRecordTypeSetPixel66591
WmfRecordTypeOffsetClipRgn66080
WmfRecordTypeTextOut66849
WmfRecordTypeBitBlt67874
WmfRecordTypeStretchBlt68387
WmfRecordTypePolygon66340
WmfRecordTypePolyline66341
WmfRecordTypeEscape67110
WmfRecordTypeRestoreDC65831
WmfRecordTypeFillRegion66088
WmfRecordTypeFrameRegion66601
WmfRecordTypeInvertRegion65834
WmfRecordTypePaintRegion65835
WmfRecordTypeSelectClipRegion65836
WmfRecordTypeSelectObject65837
WmfRecordTypeSetTextAlign65838
WmfRecordTypeDrawText67119
WmfRecordTypeChord67632
WmfRecordTypeSetMapperFlags66097
WmfRecordTypeExtTextOut68146
WmfRecordTypeSetDIBToDev68915
WmfRecordTypeSelectPalette66100
WmfRecordTypeRealizePalette65589
WmfRecordTypeAnimatePalette66614
WmfRecordTypeSetPalEntries65591
WmfRecordTypePolyPolygon66872
WmfRecordTypeResizePalette65849
WmfRecordTypeDIBBitBlt67904
WmfRecordTypeDIBStretchBlt68417
WmfRecordTypeDIBCreatePatternBrush65858
WmfRecordTypeStretchDIB69443
WmfRecordTypeExtFloodFill66888
WmfRecordTypeSetLayout65865
WmfRecordTypeResetDC65868
WmfRecordTypeStartDoc65869
WmfRecordTypeStartPage65615
WmfRecordTypeEndPage65616
WmfRecordTypeAbortDoc65618
WmfRecordTypeEndDoc65630
WmfRecordTypeDeleteObject66032
WmfRecordTypeCreatePalette65783
WmfRecordTypeCreateBrush65784
WmfRecordTypeCreatePatternBrush66041
WmfRecordTypeCreatePenIndirect66298
WmfRecordTypeCreateFontIndirect66299
WmfRecordTypeCreateBrushIndirect66300
WmfRecordTypeCreateBitmapIndirect66301
WmfRecordTypeCreateRegion67327
EmfRecordTypeHeader1
EmfRecordTypePolyBezier2
EmfRecordTypePolygon3
EmfRecordTypePolyline4
EmfRecordTypePolyBezierTo5
EmfRecordTypePolyLineTo6
EmfRecordTypePolyPolyline7
EmfRecordTypePolyPolygon8
EmfRecordTypeSetWindowExtEx9
EmfRecordTypeSetWindowOrgEx10
EmfRecordTypeSetViewportExtEx11
EmfRecordTypeSetViewportOrgEx12
EmfRecordTypeSetBrushOrgEx13
EmfRecordTypeEOF14
EmfRecordTypeSetPixelV15
EmfRecordTypeSetMapperFlags16
EmfRecordTypeSetMapMode17
EmfRecordTypeSetBkMode18
EmfRecordTypeSetPolyFillMode19
*EmfRecordTypeSetROP220
EmfRecordTypeSetStretchBltMode21
EmfRecordTypeSetTextAlign22
EmfRecordTypeSetColorAdjustment23
EmfRecordTypeSetTextColor24
EmfRecordTypeSetBkColor25
EmfRecordTypeOffsetClipRgn26
EmfRecordTypeMoveToEx27
EmfRecordTypeSetMetaRgn28
EmfRecordTypeExcludeClipRect29
EmfRecordTypeIntersectClipRect30
EmfRecordTypeScaleViewportExtEx31
EmfRecordTypeScaleWindowExtEx32
EmfRecordTypeSaveDC33
EmfRecordTypeRestoreDC34
EmfRecordTypeSetWorldTransform35
EmfRecordTypeModifyWorldTransform36
EmfRecordTypeSelectObject37
EmfRecordTypeCreatePen38
EmfRecordTypeCreateBrushIndirect39
EmfRecordTypeDeleteObject40
EmfRecordTypeAngleArc41
EmfRecordTypeEllipse42
EmfRecordTypeRectangle43
EmfRecordTypeRoundRect44
EmfRecordTypeArc45
EmfRecordTypeChord46
EmfRecordTypePie47
EmfRecordTypeSelectPalette48
EmfRecordTypeCreatePalette49
EmfRecordTypeSetPaletteEntries50
EmfRecordTypeResizePalette51
EmfRecordTypeRealizePalette52
EmfRecordTypeExtFloodFill53
EmfRecordTypeLineTo54
EmfRecordTypeArcTo55
EmfRecordTypePolyDraw56
EmfRecordTypeSetArcDirection57
EmfRecordTypeSetMiterLimit58
EmfRecordTypeBeginPath59
EmfRecordTypeEndPath60
EmfRecordTypeCloseFigure61
EmfRecordTypeFillPath62
EmfRecordTypeStrokeAndFillPath63
EmfRecordTypeStrokePath64
EmfRecordTypeFlattenPath65
EmfRecordTypeWidenPath66
EmfRecordTypeSelectClipPath67
EmfRecordTypeAbortPath68
*EmfRecordTypeReserved_06969
EmfRecordTypeGdiComment70
EmfRecordTypeFillRgn71
EmfRecordTypeFrameRgn72
EmfRecordTypeInvertRgn73
EmfRecordTypePaintRgn74
EmfRecordTypeExtSelectClipRgn75
EmfRecordTypeBitBlt76
EmfRecordTypeStretchBlt77
EmfRecordTypeMaskBlt78
EmfRecordTypePlgBlt79
EmfRecordTypeSetDIBitsToDevice80
EmfRecordTypeStretchDIBits81
EmfRecordTypeExtCreateFontIndirect82
EmfRecordTypeExtTextOutA83
EmfRecordTypeExtTextOutW84
EmfRecordTypePolyBezier1685
EmfRecordTypePolygon1686
EmfRecordTypePolyline1687
EmfRecordTypePolyBezierTo1688
EmfRecordTypePolylineTo1689
EmfRecordTypePolyPolyline1690
EmfRecordTypePolyPolygon1691
EmfRecordTypePolyDraw1692
EmfRecordTypeCreateMonoBrush93
EmfRecordTypeCreateDIBPatternBrushPt94
EmfRecordTypeExtCreatePen95
EmfRecordTypePolyTextOutA96
EmfRecordTypePolyTextOutW97
EmfRecordTypeSetICMMode98
EmfRecordTypeCreateColorSpace99
EmfRecordTypeSetColorSpace100
EmfRecordTypeDeleteColorSpace101
EmfRecordTypeGLSRecord102
EmfRecordTypeGLSBoundedRecord103
EmfRecordTypePixelFormat104
EmfRecordTypeDrawEscape105
EmfRecordTypeExtEscape106
EmfRecordTypeStartDoc107
EmfRecordTypeSmallTextOut108
EmfRecordTypeForceUFIMapping109
EmfRecordTypeNamedEscape110
EmfRecordTypeColorCorrectPalette111
EmfRecordTypeSetICMProfileA112
EmfRecordTypeSetICMProfileW113
EmfRecordTypeAlphaBlend114
EmfRecordTypeSetLayout115
EmfRecordTypeTransparentBlt116
*EmfRecordTypeReserved_117117
EmfRecordTypeGradientFill118
EmfRecordTypeSetLinkedUFIs119
EmfRecordTypeSetTextJustification120
EmfRecordTypeColorMatchToTargetW121
EmfRecordTypeCreateColorSpaceW122
EmfRecordTypeMax122
EmfRecordTypeMin1
EmfPlusRecordTypeInvalid16384
EmfPlusRecordTypeHeader16385Identifies a record that is the EMF+ header.
EmfPlusRecordTypeEndOfFile16386Identifies a record that marks the last EMF+ record of a metafile.
EmfPlusRecordTypeComment16387Graphics::AddMetafileComment
EmfPlusRecordTypeGetDC16388Graphics::GetHDC
EmfPlusRecordTypeMultiFormatStart16389Identifies the start of a multiple-format block.
EmfPlusRecordTypeMultiFormatSection16390Identifies a section in a multiple-format block. Multiple-format records allow the same set of records to be represented in several formats.
EmfPlusRecordTypeMultiFormatEnd16391Identifies the end of a multiple-format block.
EmfPlusRecordTypeObject16392
EmfPlusRecordTypeClear16393Graphics::Clear
EmfPlusRecordTypeFillRects16394FillRectangles Methods
EmfPlusRecordTypeDrawRects16395DrawRectangles Methods
EmfPlusRecordTypeFillPolygon16396FillPolygon Methods
EmfPlusRecordTypeDrawLines16397DrawLines Methods
EmfPlusRecordTypeFillEllipse16398FillEllipse Methods
EmfPlusRecordTypeDrawEllipse16399DrawEllipse Methods
EmfPlusRecordTypeFillPie16400FillPie Methods
EmfPlusRecordTypeDrawPie16401DrawPie Methods
EmfPlusRecordTypeDrawArc16402DrawArc Methods
EmfPlusRecordTypeFillRegion16403Graphics::FillRegion
EmfPlusRecordTypeFillPath16404Graphics::FillPath
EmfPlusRecordTypeDrawPath16405Graphics::DrawPath
EmfPlusRecordTypeFillClosedCurve16406FillClosedCurve Methods
EmfPlusRecordTypeDrawClosedCurve16407DrawClosedCurve Methods
EmfPlusRecordTypeDrawCurve16408DrawCurve Methods
EmfPlusRecordTypeDrawBeziers16409DrawBeziers Methods
EmfPlusRecordTypeDrawImage16410DrawImage Methods (all methods that do not receive an array of destination points)
EmfPlusRecordTypeDrawImagePoints16411DrawImage Methods (all methods that receive an array of destination points)
EmfPlusRecordTypeDrawString16412DrawString Methods
EmfPlusRecordTypeSetRenderingOrigin16413Graphics::SetRenderingOrigin
EmfPlusRecordTypeSetAntiAliasMode16414Graphics::SetSmoothingMode
EmfPlusRecordTypeSetTextRenderingHint16415Graphics::SetTextRenderingHint
EmfPlusRecordTypeSetTextContrast16416Graphics::SetTextContrast
EmfPlusRecordTypeSetInterpolationMode16417Graphics::SetInterpolationMode
EmfPlusRecordTypeSetPixelOffsetMode16418Graphics::SetPixelOffsetMode
EmfPlusRecordTypeSetCompositingMode16419Graphics::SetCompositingMode
EmfPlusRecordTypeSetCompositingQuality16420Graphics::SetCompositingQuality
EmfPlusRecordTypeSave16421Graphics::Save
EmfPlusRecordTypeRestore16422Graphics::Restore
EmfPlusRecordTypeBeginContainer16423Graphics::BeginContainer
EmfPlusRecordTypeBeginContainerNoParams16424Graphics::BeginContainer
EmfPlusRecordTypeEndContainer16425Graphics::EndContainer
EmfPlusRecordTypeSetWorldTransform16426Graphics::SetTransform
EmfPlusRecordTypeResetWorldTransform16427Graphics::ResetTransform
EmfPlusRecordTypeMultiplyWorldTransform16428Graphics::MultiplyTransform
EmfPlusRecordTypeTranslateWorldTransform16429Graphics::TranslateTransform
EmfPlusRecordTypeScaleWorldTransform16430Graphics::ScaleTransform
EmfPlusRecordTypeRotateWorldTransform16431Graphics::RotateTransform
EmfPlusRecordTypeSetPageTransform16432Graphics::SetPageScale and Graphics::SetPageUnit
EmfPlusRecordTypeResetClip16433Graphics::ResetClip
EmfPlusRecordTypeSetClipRect16434Graphics::SetClip and Graphics::SetClip
EmfPlusRecordTypeSetClipPath16435Graphics::SetClip
EmfPlusRecordTypeSetClipRegion16436Graphics::SetClip
EmfPlusRecordTypeOffsetClip16437TranslateClip Methods
EmfPlusRecordTypeDrawDriverString16438Graphics::DrawDriverString
EmfPlusRecordTypeStrokeFillPath16439
EmfPlusRecordTypeSerializableObject16440
EmfPlusRecordTypeSetTSGraphics16441
EmfPlusRecordTypeSetTSClip16442

EmfToWmfBitsFlags

Specifies options for the GdipEmfToWmfBits function, which converts an Enhanced Metafile (EMF) metafile to a Windows Metafile Format (WMF) metafile.

NameValueDescription
EmfToWmfBitsFlagsDefault&H00000000Specifies the default conversion.
EmfToWmfBitsFlagsEmbedEmf&H00000001Specifies that the source EMF metafile is embedded as a comment in the resulting WMF metafile.
EmfToWmfBitsFlagsIncludePlaceable&H00000002Specifies that the resulting WMF metafile is in the placeable metafile format; that is, it has the additional 22-byte header required by a placeable metafile.
EmfToWmfBitsFlagsNoXORClip&H00000004Specifies that the clipping region is stored in the metafile in the traditional way. If you do not set this flag, the GdipEmfToWmfBits function applies an optimization that stores the clipping region as a path and simulates clipping by using the XOR operator.

EmfType

The EmfType enumeration specifies the nature of the records that are placed in an Enhanced Metafile (EMF) file.

NameValueDescription
EmfTypeEmfOnly3Specifies that all of the records in the metafile are EMF records, which can be displayed by GDI or GDI+.
EmfTypeEmfPlusOnly4Specifies that all of the records in the metafile are EMF+ records, which can be displayed by GDI+ but not by GDI.
EmfTypeEmfPlusDual5Specifies that all EMF+ records in the metafile are associated with an alternate EMF record. Metafiles of type EmfTypeEmfPlusDual can be displayed by GDI or by GDI+.

EncoderParameterValueType

Specifies data types for image codec (encoder/decoder) parameters. An element of this enumeration is assigned to the Type data member of an EncoderParameter structure

NameValueDescription
EncoderParameterValueTypeByte1Specifies that the parameter is an 8-bit unsigned integer.
EncoderParameterValueTypeASCII2Specifies that the parameter is a null-terminated character string.
EncoderParameterValueTypeShort3Specifies that the parameter is a 16-bit unsigned integer.
EncoderParameterValueTypeShort4Specifies that the parameter is a 32-bit unsigned integer.
EncoderParameterValueTypeRational5Specifies that the parameter is an array of two, 32-bit unsigned integers. The pair of integers represents a fraction. The first integer in the pair is the numerator, and the second integer in the pair is the denominator.
EncoderParameterValueTypeLongRange6Specifies that the parameter is an array of two, 32-bit unsigned integers. The pair of integers represents a range of numbers. The first integer is the smallest number in the range, and the second integer is the largest number in the range.
EncoderParameterValueTypeUndefined7Specifies that the parameter is an array of bytes that can hold values of any type.
EncoderParameterValueTypeRationalRange8Specifies that the parameter is an array of four, 32-bit unsigned integers. The first two integers represent one fraction, and the second two integers represent a second fraction. The two fractions represent a range of rational numbers. The first fraction is the smallest rational number in the range, and the second fraction is the largest rational number in the range.
EncoderParameterValueTypePointer9Specifies that the parameter is a pointer to a block of custom metadata.

EncoderValue

Specifies values that can be passed as arguments to image encoders.

NameValueDescription
EncoderValueColorTypeCMYK0Not used in GDI+ version 1.0.
EncoderValueColorTypeYCCK1Not used in GDI+ version 1.0.
EncoderValueCompressionLZW2For a TIFF image, specifies the LZW compression method.
EncoderValueCompressionCCITT33For a TIFF image, specifies the CCITT3 compression method.
EncoderValueCompressionCCITT44For a TIFF image, specifies the CCITT4 compression method.
EncoderValueCompressionRle5For a TIFF image, specifies the RLE compression method.
EncoderValueCompressionNone6For a TIFF image, specifies no compression.
EncoderValueScanMethodInterlaced7Not used in GDI+ version 1.0.
EncoderValueScanMethodNonInterlaced8Not used in GDI+ version 1.0.
EncoderValueVersionGif879Not used in GDI+ version 1.0.
EncoderValueVersionGif8910Not used in GDI+ version 1.0.
EncoderValueRenderProgressive11Not used in GDI+ version 1.0.
EncoderValueRenderNonProgressive12Not used in GDI+ version 1.0.
EncoderValueTransformRotate9013For a JPEG image, specifies lossless 90-degree clockwise rotation.
EncoderValueTransformRotate18014For a JPEG image, specifies lossless 180-degree rotation.
EncoderValueTransformRotate27015For a JPEG image, specifies lossless 270-degree clockwise rotation.
EncoderValueTransformFlipHorizontal16For a JPEG image, specifies a lossless horizontal flip.
EncoderValueTransformFlipVertical17For a JPEG image, specifies a lossless vertical flip.
EncoderValueMultiFrame18Specifies multiple-frame encoding.
EncoderValueLastFrame19Specifies the last frame of a multiple-frame image.
EncoderValueFlush20Specifies that the encoder object is to be closed.
EncoderValueFrameDimensionTime21Not used in GDI+ version 1.0.
EncoderValueFrameDimensionResolution22Not used in GDI+ version 1.0.
EncoderValueFrameDimensionPage23For a TIFF image, specifies the page frame dimension
EncoderValueColorTypeGray24
EncoderValueColorTypeRGB26

FillMode

The FillMode enumeration specifies how to fill areas that are formed when a path or curve intersects itself.

NameValueDescription
FillModeAlternate0Specifies that areas are filled according to the even-odd parity rule. According to this rule, you can determine whether a test point is inside or outside a closed curve as follows: Draw a line from the test point to a point that is distant from the curve. If that line crosses the curve an odd number of times, the test point is inside the curve; otherwise, the test point is outside the curve.
FillModeWinding1Specifies that areas are filled according to the nonzero winding rule. According to this rule, you can determine whether a test point is inside or outside a closed curve as follows: Draw a line from a test point to a point that is distant from the curve. Count the number of times the curve crosses the test line from left to right, and count the number of times the curve crosses the test line from right to left. If those two numbers are the same, the test point is outside the curve; otherwise, the test point is inside the curve.

FlushIntention

The FlushIntention enumeration specifies when to flush the queue of graphics operations.

NameValueDescription
FlushIntentionFlush0When passed to the GdipFlush function, specifies that pending rendering operations are executed as soon as possible. The GdipFlush function is not synchronized with the completion of the rendering operations and might return before the rendering operations are completed.
FlushIntentionSync1When passed to the GdipFlush function, specifies that pending rendering operations are executed as soon as possible. The GdipFlush function is synchronized with the completion of the rendering operations; that is, it will not return until after the rendering operations are completed.

FontStyle

The FontStyle enumeration specifies the style of the typeface of a font. Styles can be combined.

NameValueDescription
FontStyleRegular0Specifies normal weight or thickness of the typeface.
FontStyleBold1Specifies bold typeface. Bold is a heavier weight or thickness.
FontStyleItalic2Specifies italic typeface, which produces a noticeable slant to the vertical stems of the characters.
FontStyleBoldItalic3Specifies the typeface as both bold and italic.
FontStyleUnderline4Specifies underline, which displays a line underneath the baseline of the characters.
FontStyleStrikeout8Specifies strikeout, which displays a horizontal line drawn through the middle of the characters.

GenericFontFamily

Specifies the type of generic font family.

NameValueDescription
GenericFontFamilySerif0Specifies a generic serif typeface.
GenericFontFamilySansSerif1Specifies a generic sans serif typeface.
GenericFontFamilyMonospace2Specifies a generic monospace typeface.

HatchStyle

The HatchStyle enumeration specifies the hatch pattern used by a brush of type HatchBrush. The hatch pattern consists of a solid background color and lines drawn over the background.

NameValueDescription
HatchStyleHorizontal0Specifies horizontal lines.
HatchStyleVertical1Specifies vertical lines.
HatchStyleForwardDiagonal2Specifies diagonal lines that slant to the right from top points to bottom points. The lines are antialiased.
HatchStyleBackwardDiagonal3Specifies diagonal lines that slant to the left from top points to bottom points. The lines are antialiased.
HatchStyleCross4Specifies horizontal and vertical lines that cross at 90-degree angles.
HatchStyleLargeGrid4Specifies horizontal and vertical lines that cross at 90-degree angles.
HatchStyleDiagonalCross5Specifies forward diagonal and backward diagonal lines that cross at 90-degree angles. The lines are antialiased.
HatchStyle05Percent6Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:100.
HatchStyle10Percent7Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:100.
HatchStyle20Percent8Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:100.
HatchStyle25Percent9Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:100.
HatchStyle30Percent10Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:100.
HatchStyle40Percent11Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:100.
HatchStyle50Percent12Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:100.
HatchStyle60Percent13Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:100.
HatchStyle70Percent14Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:100.
HatchStyle75Percent15Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:100.
HatchStyle80Percent16Specifies an 80-percent hatch. The ratio of foreground color to background color is 80:100.
HatchStyle90Percent17Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:100.
HatchStyleLightDownwardDiagonal18Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 percent closer together than HatchStyleForwardDiagonal but are not antialiased.
HatchStyleLightUpwardDiagonal19Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 percent closer together than HatchStyleBackwardDiagonal but are not antialiased.
HatchStyleDarkDownwardDiagonal20Specifies diagonal lines that slant to the right from top points to bottom points, are spaced 50 percent closer together than HatchStyleForwardDiagonal, and are twice the width of HatchStyleForwardDiagonal but are not antialiased.
HatchStyleDarkUpwardDiagonal21Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 percent closer together than HatchStyleBackwardDiagonal, and are twice the width of HatchStyleBackwardDiagonal but are not antialiased.
HatchStyleWideDownwardDiagonal22Specifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as HatchStyleForwardDiagonal, and are triple the width of HatchStyleForwardDiagonal but are not antialiased.
HatchStyleWideUpwardDiagonal23Specifies diagonal lines that slant to the left from top points to bottom points, have the same spacing as HatchStyleBackwardDiagonal, and are triple the width of HatchStyleBackwardDiagonal but are not antialiased.
HatchStyleLightVertical24Specifies vertical lines that are spaced 50 percent closer together than HatchStyleVertical.
HatchStyleLightHorizontal25Specifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal.
HatchStyleNarrowVertical26Specifies vertical lines that are spaced 75 percent closer together thanHatchStyleVertical (or 25 percent closer together than HatchStyleLightVertical).
HatchStyleNarrowHorizontal27Specifies horizontal lines that are spaced 75 percent closer together than HatchStyleHorizontal ( or 25 percent closer together than HatchStyleLightHorizontal).
HatchStyleDarkVertical28Specifies vertical lines that are spaced 50 percent closer together than HatchStyleVerical and are twice the width of HatchStyleVertical.
HatchStyleDarkHorizontal29Specifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal and are twice the width of HatchStyleHorizontal.
HatchStyleDashedDownwardDiagonal30Specifies horizontal lines that are composed of forward diagonals.
HatchStyleDashedUpwardDiagonal31Specifies horizontal lines that are composed of backward diagonals.
HatchStyleDashedHorizontal32Specifies horizontal dashed lines.
HatchStyleDashedVertical33Specifies vertical dashed lines.
HatchStyleSmallConfetti34Specifies a hatch that has the appearance of confetti.
HatchStyleLargeConfetti35Specifies a hatch that has the appearance of confetti composed of larger pieces than HatchStyleSmallConfetti.
HatchStyleZigZag36Specifies horizontal lines of zigzags.
HatchStyleWave37Specifies horizontal lines of tildes.
HatchStyleDiagonalBrick38Specifies a hatch that has the appearance of a wall of bricks laid in a backward diagonal direction.
HatchStyleHorizontalBrick39Specifies a hatch that has the appearance of a wall of bricks laid horizontally.
HatchStyleWeave40Specifies a hatch that has the appearance of a woven material.
HatchStylePlaid41Specifies a hatch that has the appearance of a plaid material.
HatchStyleDivot42Specifies a hatch that has the appearance of divots.
HatchStyleDottedGrid43Specifies horizontal and vertical dotted lines that cross at 90-degree angles.
HatchStyleDottedDiamond44Specifies forward diagonal and backward diagonal dotted lines that cross at 90-degree angles.
HatchStyleShingle45Specifies a hatch that has the appearance of shingles laid in a forward diagonal direction.
HatchStyleTrellis46Specifies a hatch that has the appearance of a trellis.
HatchStyleSphere47Specifies a hatch that has the appearance of a checkerboard of spheres.
HatchStyleSmallGrid48Specifies horizontal and vertical lines that cross at 90-degree angles and are spaced 50 percent closer together than HatchStyleCross.
HatchStyleSmallCheckerBoard49Specifies a hatch that has the appearance of a checkerboard.
HatchStyleLargeCheckerBoard50Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of HatchStyleSmallCheckerBoard.
HatchStyleOutlinedDiamond51Specifies forward diagonal and backward diagonal lines that cross at 90-degree angles but are not antialiased.
HatchStyleSolidDiamond52Specifies a hatch that has the appearance of a checkerboard placed diagonally.
HatchStyleTotal53Specifies no hatch thereby allowing the brush to be transparent.
HatchStyleMinHatchStyleHorizontalSpecifies HatchStyleHorizonal.
HatchStyleMaxHatchStyleTotal - 1Specifies HatchStyleSolidDiamond.

HistogramFormat

The HistogramFormat enumeration specifies the number and type of histograms that represent the color channels of a bitmap. This enumeration is used with the GdipBitmapGetHistogram function.

NameValueDescription
HistogramFormatARGB0Specifies that the GdipBitmapGetHistogram function returns four histograms: one each for the alpha, red, green, and blue channels. The alpha-channel histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram function. The red-channel histogram is written to the buffer pointed to by the channel1 parameter. The green-channel histogram is written to the buffer pointed to by the channel2 parameter. The blue-channel histogram is written to the buffer pointed to by the channel3 parameter.
HistogramFormatPARGB1Specifies that the GdipBitmapGetHistogram function returns four histograms: one each for the alpha, red, green, and blue channels. The red, green, and blue channels are each multiplied by the alpha channel before the histograms are created. The bitmap is not permanently altered when the color channels are multiplied by the alpha channel; that multiplication is only for the purpose of creating the histograms. The alpha-channel histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram function. The red-channel histogram is written to the buffer pointed to by the channel1 parameter. The green-channel histogram is written to the buffer pointed to by the channel2 parameter. The blue-channel histogram is written to the buffer pointed to by the channel3 parameter.
HistogramFormatRGB2Specifies that the GdipBitmapGetHistogram function returns three histograms: one each for the red, green, and blue channels. The red-channel histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram function. The green-channel histogram is written to the buffer pointed to by the channel1 parameter. The blue-channel histogram is written to the buffer pointed to by the channel2 parameter. The channel3 parameter must be set to NULL.
HistogramFormatGray3Specifies that each pixel is converted to a grayscale value in the range 0 through 255, and then one histogram, based on those grayscale value, is returned. The bitmap is not permanently altered by the conversion to grayscale values; those values are calculated only for the purpose of creating the histogram. The grayscale histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram function. The channel1, channel2, and channel3 parameters must be set to NULL.
HistogramFormatB4Specifies that the GdipBitmapGetHistogram function returns a histogram for the blue channel. The blue-channel histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram fdunction. The channel1, channel2, and channel3 parameters must be set to NULL.
HistogramFormatG5Specifies that the GdipBitmapGetHistogram function returns a histogram for the green channel. The green-channel histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram function. The channel1, channel2, and channel3 parameters must be set to NULL.
HistogramFormatR6Specifies that the GdipBitmapGetHistogram function returns a histogram for the red channel. The red-channel histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram function. The channel1, channel2, and channel3 parameters must be set to NULL.
HistogramFormatA7Specifies that the GdipBitmapGetHistogram function returns a histogram for the alpha channel. The alpha-channel histogram is written to the buffer pointed to by the channel0 parameter of the GdipBitmapGetHistogram function. The channel1, channel2, and channel3 parameters must be set to NULL.

HotKeyPrefix

The HotkeyPrefix enumeration specifies how to display hot keys. There are three options: do nothing, display hot keys underlined, and hide the hot key underlines.

NameValueDescription
HotkeyPrefixNone0Specifies that no hot key processing occurs.
HotkeyPrefixShow1Specifies that Unicode text is scanned for ampersands (&), which are interpreted as hot key markers in the same way as menu and dialog resources are processed in the Windows user interface. All pairs of ampersands are replaced by a single ampersand. All single ampersands are removed and the first character that follows the first single ampersand is displayed underlined.
HotkeyPrefixHide2Specifies that Unicode text is scanned for ampersands (&), which are substituted and removed as in HotkeyPrefixShow but no underline is shown. This option can be used when accessibility hot key underlines are not required.

ImageCodecFlags

The ImageCodecFlags enumeration indicates attributes of an image codec.

NameValueDescription
ImageCodecFlagsEncoder&h00000001Indicates that the codec supports encoding (saving).
ImageCodecFlagsDecoder&h00000002Indicates that the codec supports decoding (reading).
ImageCodecFlagsSupportBitmap&h00000004Indicates that the codec supports raster images (bitmaps).
ImageCodecFlagsSupportVector&h00000008Indicates that the codec supports vector images (metafiles).
ImageCodecFlagsSeekableEncode&h00000010Indicates that an encoder requires a seekable output stream.
ImageCodecFlagsBlockingDecode&h00000020Indicates that a decoder has blocking behavior during the decoding process.
ImageCodecFlagsBuiltin&h00010000Indicates that the codec is built in to GDI+.
ImageCodecFlagsSystem&h00020000Not used in GDI+ version 1.0.
ImageCodecFlagsUser&h00040000Not used in GDI+ version 1.0.

ImageFlags

Specifies the attributes of the pixel data contained in an image. The GdipGetImageFlags function returns an element of this enumeration.

NameValueDescription
ImageFlagsNone0Specifies no format information.
ImageFlagsScalable&h0001Specifies that the image can be scaled.
ImageFlagsHasAlpha&h0002Specifies that the pixel data contains alpha values.
ImageFlagsHasTranslucent&h0004Specifies that the pixel data has alpha values other than 0 (transparent) and 255 (opaque).
ImageFlagsPartiallyScalable&h0008Specifies that the pixel data is partially scalable with some limitations.
ImageFlagsColorSpaceRGB&h0010Specifies that the image is stored using an RGB color space.
ImageFlagsColorSpaceCMYK&h0020Specifies that the image is stored using a CMYK color space.
ImageFlagsColorSpaceGRAY&h0040Specifies that the image is a grayscale image.
ImageFlagsColorSpaceYCBCR&h0080Specifies that the image is stored using a YCBCR color space.
ImageFlagsColorSpaceYCCK&h0100Specifies that the image is stored using a YCCK color space.
ImageFlagsHasRealDPI&h1000Specifies that dots per inch information is stored in the image.
ImageFlagsHasRealPixelSize&h2000Specifies that the pixel size is stored in the image.
ImageFlagsReadOnly&h00010000Specifies that the pixel data is read-only.
ImageFlagsCaching&h00020000Specifies that the pixel data can be cached for faster access.

ImageLockMode

Specifies flags that are passed to the flags parameter of the GdipBitmapLockBits function. The GdipBitmapLockBits function locks a portion of an image so that you can read or write the pixel data.

NameValueDescription
ImageLockModeRead&h0001Specifies that a portion of the image is locked for reading.
ImageLockModeWrite&h0002Specifies that a portion of the image is locked for writing.
ImageLockModeUserInputBuf&h0004Specifies that the buffer used for reading or writing pixel data is allocated by the user. If this flag is set, then the lockedBitmapData parameter of the GdipBitmapLockBits method serves as an input parameter (and possibly as an output parameter). If this flag is cleared, then the lockedBitmapData parameter serves only as an output parameter.

ImageType

The ImageType enumeration indicates whether an image is a bitmap or a metafile. The GdipGetImageType method returns an element of this enumeration.

NameValueDescription
ImageTypeUnknown0Indicates that the image type is not known.
ImageTypeBitmap1Indicates a bitmap image.
ImageTypeMetafile2Indicates a metafile image.

InterpolationMode

The InterpolationMode enumeration specifies the algorithm that is used when images are scaled or rotated. This enumeration is used by the GdipGetInterpolationMode and GdipSetInterpolationMode functions of the Graphics functions.

NameValueDescription
InterpolationModeInvalid-1Used internally
InterpolationModeDefault0Specifies the default interpolation mode.
InterpolationModeLowQuality1Specifies a low-quality mode.
InterpolationModeHighQuality2Specifies a high-quality mode.
InterpolationModeBilinear3Specifies bilinear interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 50 percent of its original size.
InterpolationModeBicubic4Specifies bicubic interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 25 percent of its original size.
InterpolationModeNearestNeighbor5Specifies nearest-neighbor interpolation.
InterpolationModeHighQualityBilinear6Specifies high-quality, bilinear interpolation. Prefiltering is performed to ensure high-quality shrinking.
InterpolationModeHighQualityBicubic7Specifies high-quality, bicubic interpolation. Prefiltering is performed to ensure high-quality shrinking. This mode produces the highest quality transformed images.

ItemDataPosition

Used to specify the location of custom metadata in an image file.


LinearGradientMode

The LinearGradientMode enumeration specifies the direction in which the change of color occurs for a linear gradient brush.

NameValueDescription
LinearGradientModeHorizontal0Specifies the color to change in a horizontal direction from the left of the display to the right of the display.
LinearGradientModeVertical1Specifies the color to change in a vertical direction from the top of the display to the bottom of the display.
LinearGradientModeForwardDiagonal2Specifies the color to change in a forward diagonal direction from the upper-left corner to the lower-right corner of the display.
LinearGradientModeBackwardDiagonal3Specifies the color to change in a backward diagonal direction from the upper-right corner to the lower-left corner of the display.

LineCap

The LineCap enumeration specifies the type of graphic shape to use on the end of a line drawn with a Windows GDI+ pen. The cap can be a square, circle, triangle, arrowhead, custom, or masked (hidden). End caps can also "anchor" the line by centering the cap at the end of the line.

NameValueDescription
LineCapFlat0Specifies that the line ends at the last point. The end is squared off.
LineCapSquare1Specifies a square cap. The center of the square is the last point in the line. The height and width of the square are the line width.
LineCapRound2Specifies a circular cap. The center of the circle is the last point in the line. The diameter of the circle is the line width.
LineCapTriangle3Specifies a triangular cap. The base of the triangle is the last point in the line. The base of the triangle is the line width.
LineCapNoAnchor&H10Specifies that the line ends are not anchored.
LineCapSquareAnchor&H11Specifies that the line ends are anchored with a square. The center of the square is the last point in the line. The height and width of the square are the line width.
LineCapRoundAnchor&H12Specifies that the line ends are anchored with a circle. The center of the circle is at the last point in the line. The circle is wider than the line.
LineCapDiamondAnchor&H13Specifies that the line ends are anchored with a diamond (a square turned at 45 degrees). The center of the diamond is at the last point in the line. The diamond is wider than the line.
LineCapArrowAnchor&H14Specifies that the line ends are anchored with arrowheads. The arrowhead point is located at the last point in the line. The arrowhead is wider than the line.
LineCapCustom&HFFSpecifies that the line ends are made from a CustomLineCap.
LineCapAnchorMask&HF0

LineJoin

The LineJoin enumeration specifies how to join two lines that are drawn by the same pen and whose ends meet. At the intersection of the two line ends, a line join makes the join look more continuous.

NameValueDescription
LineJoinMiter0Specifies a mitered join. This produces a sharp corner or a clipped corner, depending on whether the length of the miter exceeds the miter limit.
LineJoinBevel1Specifies a beveled join. This produces a diagonal corner.
LineJoinRound2Specifies a circular join. This produces a smooth, circular arc between the lines.
LineJoinMiterClipped3Specifies a mitered join. This produces a sharp corner or a beveled corner, depending on whether the length of the miter exceeds the miter limit.

MatrixOrder

The MatrixOrder enumeration specifies the order of multiplication when a new matrix is multiplied by an existing matrix.

NameValueDescription
MatrixOrderPrepend0Specifies that the new matrix is on the left and the existing matrix is on the right.
MatrixOrderAppend1Specifies that the existing matrix is on the left and the new matrix is on the right.

MetafileFrameUnit

The MetafileFrameUnit enumeration specifies the unit of measure for a metafile frame rectangle.

NameValueDescription
MetafileFrameUnitPixel2Specifies that a unit is 1 pixel.
MetafileFrameUnitPoint3Specifies that a unit is 1 point.
MetafileFrameUnitInch4Specifies that a unit is 1 inch.
MetafileFrameUnitDocument5Specifies that a unit is 1/300 inch.
MetafileFrameUnitMillimeter6Specifies that a unit is 1 millimeter.
MetafileFrameUnitGdi7Specifies that a unit is 0.01 millimeter. This element is provided for compatibility with GDI.

MetafileType

The MetafileType enumeration specifies types of metafiles.

NameValueDescription
MetafileTypeInvalid0Specifies a metafile format that is not recognized in GDI+.
MetafileTypeWmf1Specifies a WMF file. Such a file contains only GDI records.
MetafileTypeWmfPlaceable2Specifies a WMF file that has a placeable metafile header in front of it.
MetafileTypeEmf3Specifies an EMF file. Such a file contains only GDI records.
MetafileTypeEmfPlusOnly4Specifies an EMF+ file. Such a file contains only GDI+ records and must be displayed by using GDI+. Displaying the records using GDI may cause unpredictable results.
MetafileTypeEmfPlusDual5Specifies an EMF+ Dual file. Such a file contains GDI+ records along with alternative GDI records and can be displayed by using either GDI or GDI+. Displaying the records using GDI may cause some quality degradation.

ObjectType

The ObjectType enumeration indicates the object type value of an EMF+ record.

NameValueDescription
ObjectTypeInvalid0Object type is invalid.
ObjectTypeBrush1Object type is a brush.
ObjectTypePen2Object type is a pen.
ObjectTypePath3Object type is a path.
ObjectTypeRegion4Object type is a region.
ObjectTypeFont5Object type is a font.
ObjectTypeStringFormat6Object type is a string format.
ObjectTypeImageAttributes7Object type is an image attribute.
ObjectTypeCustomLineCap8Object type is a custom line cap.
ObjectTypeGraphics9Object type is graphics.
ObjectTypeMinObjectTypeBrushMinimum enumeration value. Currently, it is ObjectTypeBrush.
ObjectTypeMaxObjectTypeGraphicsMaximum enumeration value. Currently, it is ObjectTypeGraphics.
Remarks

To determine whether the object type value of an EMF+ record is valid, call ObjectTypeIsValid.


PaletteFlags

The PaletteFlags enumeration indicates attributes of the color data in a palette.

NameValueDescription
PaletteFlagsHasAlpha&h0001Indicates that one or more of the palette entries contains alpha (transparency) information.
PaletteFlagsGrayScale&h0002Indicates that the palette contains only grayscale entries.
PaletteFlagsHalftone&h0004Indicates that the palette is the Windows halftone palette.

PaletteType

Specifies color palette types. Used by the GdipInitializePalette and GdipBitmapConvertFormat functions. The members of the enumeration identify several standard color palette formats.

NameValueDescription
PaletteTypeCustom0An arbitrary custom palette specified by the caller.
PaletteTypeOptimal1A palette of colors that are optimal for a particular bitmap. To create an optimal palette, pass PaletteTypeOptimal, the number of colors you want in the palette, and the address of a Bitmap object to the GdipInitializePalette function.
PaletteTypeFixedBW2A palette that has two colors. This palette type is suitable for bitmaps that store 1 bit per pixel.
PaletteTypeFixedHalftone83A palette based on two intensities each (off or full) for the red, green, and blue channels. Also contains the 16 colors of the system palette. Because all eight of the on/off combinations of red, green, and blue are already in the system palette, this palette is the same as the system palette. This palette type is suitable for bitmaps that store 4 bits per pixel.
PaletteTypeFixedHalftone274A palette based on three intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 27 three-intensity combinations of red, green, and blue, so the total number of colors in the palette is 35. If the palette also includes the transparent color, the total number of colors is 36.
PaletteTypeFixedHalftone645A palette based on four intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 64 four-intensity combinations of red, green, and blue, so the total number of colors in the palette is 72. If the palette also includes the transparent color, the total number of colors is 73.
PaletteTypeFixedHalftone1256A palette based on five intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 125 five-intensity combinations of red, green, and blue, so the total number of colors in the palette is 133. If the palette also includes the transparent color, the total number of colors is 134.
PaletteTypeFixedHalftone2167A palette based on six intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 216 six-intensity combinations of red, green, and blue, so the total number of colors in the palette is 224. If the palette also includes the transparent color, the total number of colors is 225. This palette is sometimes called the Windows halftone palette or the Web palette.
PaletteTypeFixedHalftone2528A palette based on 6 intensities of red, 7 intensities of green, and 6 intensities of blue. The system palette is not included. The total number of colors is 252. If the palette also includes the transparent color, the total number of colors is 253.
PaletteTypeFixedHalftone2569A palette based on 8 intensities of red, 8 intensities of green, and 4 intensities of blue. The system palette is not included. The total number of colors is 256. If the transparent color is included in this palette, it must replace one of the RGB combinations.

PathPointType

Indicates point types and flags for the data points in a path. Bits 0 through 2 indicate the type of a point, and bits 3 through 7 hold a set of flags that specify attributes of a point.

The PathPointType enumeration indicates point types and flags for the data points in a path. Bits 0 through 2 indicate the type of a point, and bits 3 through 7 hold a set of flags that specify attributes of a point. This enumeration is used by the GraphicsPath and PathIterator functions.

NameValueDescription
PathPointTypeStart&h00Indicates that the point is the start of a figure.
PathPointTypeLine&h01Indicates that the point is one of the two endpoints of a line.
PathPointTypeBezier&h03Indicates that the point is an endpoint or control point of a cubic Bézier spline.
PathPointTypeBezier3&h03Indicates that the point is an endpoint or control point of a cubic Bézier spline.
PathPointTypePathTypeMask&h07Masks all bits except for the three low-order bits, which indicate the point type.
PathPointTypePathDashMode&h10Not used.
PathPointTypePathMarker&h20Specifies that the point is a marker.
PathPointTypeCloseSubpath&h80Specifies that the point is the last point in a closed subpath (figure).
Remarks

A GraphicsPath object has an array of points and an array of types. Each element in the array of types is a byte that specifies the point type and a set of flags for the corresponding element in the array of points.


PenAlignment

The PenAlignment enumeration specifies the alignment of a pen relative to the stroke that is being drawn.

NameValueDescription
PenAlignmentCenter0Specifies that the pen is aligned on the center of the line that is drawn.
PenAlignmentInset1Specifies, when drawing a polygon, that the pen is aligned on the inside of the edge of the polygon.
Remarks

If you set the alignment of a Pen object to PenAlignmentInset, you cannot use that pen to draw compound lines or triangular dash caps.


PenType

The PenType enumeration indicates the type of pattern, texture, or gradient that a pen draws.

NameValueDescription
PenTypeUnknown-1Indicates that the pen type is unknown.
PenTypeSolidColor0Indicates that the pen draws with a solid color.
PenTypeHatchFill1Indicates that the pen draws with a hatch pattern that is specified by a HatchBrush object.
PenTypeTextureFill2Indicates that the pen draws with a texture that is specified by a TextureBrush object.
PenTypePathGradient3Indicates that the pen draws with a color gradient that is specified by a PathGradientBrush object.
PenTypeLinearGradient4Indicates that the pen draws with a color gradient that is specified by a LinearGradientBrush object.
Remarks

A pen's type is determined when the pen is constructed. For example, if you pass a HatchBrush object to a Pen constructor, then the pen that is constructed has a pen type of PenTypeHatchFill. If you pass a Color object or a SolidBrush object to a Pen constructor, then the pen that is constructed has a pen type of PenTypeSolidColor.


PixelOffsetMode

The PixelOffsetMode enumeration specifies the pixel offset mode. This enumeration is used by the GdipGetPixelOffsetMode and GdipSetPixelOffsetMode methods of the Graphics class.

NameValueDescription
PixelOffsetModeInvalid-1Used internally.
PixelOffsetModeDefault0Equivalent to PixelOffsetModeNone.
PixelOffsetModeHighSpeed1Equivalent to PixelOffsetModeNone.
PixelOffsetModeHighQuality2Equivalent to PixelOffsetModeHalf.
PixelOffsetModeNone3Indicates that pixel centers have integer coordinates.
PixelOffsetModeHalf4Indicates 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).


QualityMode

Specifies the quality mode.

NameValueDescription
QualityModeInvalid-1Specifies an invalid mode.
QualityModeDefault0Specifies the default mode.
QualityModeLow1Specifies low quality, high speed rendering.
QualityModeHigh2Specifies high quality, low speed rendering.
Remarks

The quality level is inversely proportional to the amount of time spent rendering. This mode does not affect text. To set the text rendering quality, use the TextRenderingHint enumeration.


RotateFlipType

The RotateFlipType enumeration specifies the direction of an image's rotation and the axis used to flip the image.

NameValueDescription
RotateNoneFlipNone0Specifies no rotation and no flipping.
Rotate90FlipNone1Specifies a 90-degree rotation without flipping.
Rotate180FlipNone2Specifies a 180-degree rotation without flipping.
Rotate270FlipNone3Specifies a 270-degree rotation without flipping.
RotateNoneFlipX4Specifies no rotation and a horizontal flip.
Rotate90FlipX5Specifies a 90-degree rotation followed by a horizontal flip.
Rotate180FlipX6Specifies a 180-degree rotation followed by a horizontal flip.
Rotate270FlipX7Specifies a 270-degree rotation followed by a horizontal flip.
RotateNoneFlipYRotate180FlipXSpecifies no rotation and a vertical flip.
Rotate90FlipYRotate270FlipXSpecifies a 90-degree rotation followed by a vertical flip.
Rotate180FlipYRotateNoneFlipXSpecifies a 180-degree rotation followed by a vertical flip.
Rotate270FlipYRotate90FlipXSpecifies a 270-degree rotation followed by a vertical flip.
RotateNoneFlipXYRotate180FlipNoneSpecifies no rotation, a horizontal flip, and then a vertical flip.
Rotate90FlipXYRotate270FlipNoneSpecifies a 90-degree rotation followed by a horizontal flip and then a vertical flip.
Rotate180FlipXYRotateNoneFlipNoneSpecifies a 180-degree rotation followed by a horizontal flip and then a vertical flip.
Rotate270FlipXYRotate90FlipNoneSpecifies a 270-degree rotation followed by a horizontal flip and then a vertical flip.

SmoothingMode

The SmoothingMode enumeration specifies the type of smoothing (antialiasing) that is applied to lines and curves. This enumeration is used by the GdipGetSmoothingMode and GdipSetSmoothingMode functions.

NameValueDescription
SmoothingModeInvalidQualityModeInvalidReserved.
SmoothingModeDefault0Specifies that smoothing is not applied.
SmoothingModeHighSpeed1Specifies that smoothing is not applied.
SmoothingModeHighQuality2Specifies that smoothing is applied using an 8 X 4 box filter.
SmoothingModeNone3Specifies that smoothing is not applied.
SmoothingModeAntiAlias8x44Specifies that smoothing is applied using an 8 X 4 box filter.
SmoothingModeAntiAlias4Specifies that smoothing is applied using an 8 X 4 box filter.
SmoothingModeAntiAlias8x85Specifies that smoothing is applied using an 8 X 8 box filter.
Remarks

Smoothing performed by an 8 X 4 box filter gives better results for nearly vertical lines than it does for nearly horizontal lines. Smoothing performed by an 8 X 8 box filter gives equally good results for nearly vertical and nearly horizontal lines. The 8x8 algorithm produces higher quality smoothing but is slower than the 8 X 4 algorithm.


Status

The Status enumeration indicates the result of a Microsoft Windows GDI+ method call. Renamed as GpStatus to avoid naming conflicts.

NameValueDescription
StatusOk0Indicates that the method call was successful.
StatusGenericError1Indicates that there was an error on the method call, which is identified as something other than those defined by the other elements of this enumeration.
StatusInvalidParameter2Indicates that one of the arguments passed to the method was not valid.
StatusOutOfMemory3Indicates that the operating system is out of memory and could not allocate memory to process the method call. For an explanation of how constructors use the OutOfMemory status, see the Remarks section at the end of this topic.
StatusObjectBusy4Indicates that one of the arguments specified in the API call is already in use in another thread.
StatusInsufficientBuffer5Indicates that a buffer specified as an argument in the API call is not large enough to hold the data to be received.
StatusNotImplemented6Indicates that the method is not implemented.
StatusWin32Error7Indicates that the method generated a Win32 error.
StatusWrongState8Indicates that the object is in an invalid state to satisfy the API call. For example, calling

GdipGetPenColor from a pen that is not a single, solid color results in a WrongState status. |

StatusAborted9Indicates that the method was aborted.
StatusFileNotFound10Indicates that the specified image file or metafile cannot be found.
StatusValueOverflow11Indicates that the method performed an arithmetic operation that produced a numeric overflow.
StatusAccessDenied12Indicates that a write operation is not allowed on the specified file.
StatusUnknownImageFormat13Indicates that the specified image file format is not known.
StatusFontFamilyNotFound14Indicates that the specified font family cannot be found. Either the font family name is incorrect or the font family is not installed.
StatusFontStyleNotFound15Indicates that the specified style is not available for the specified font family.
StatusNotTrueTypeFont16Indicates that the font retrieved from an HDC or LOGFONT is not a TrueType font and cannot be used with GDI+.
StatusUnsupportedGdiplusVersion17Indicates that the version of GDI+ that is installed on the system is incompatible with the version with which the application was compiled.
StatusGdiplusNotInitialized18Indicates that the GDI+API is not in an initialized state. To function, all GDI+ objects require that GDI+ be in an initialized state. Initialize GDI+ by calling GdiplusStartup.
StatusPropertyNotFound19Indicates that the specified property does not exist in the image.
StatusPropertyNotSupported20Indicates that the specified property is not supported by the format of the image and, therefore, cannot be set.
ProfileNotFound21Indicates that the color profile required to save an image in CMYK format was not found.

StringAlignment

The StringAlignment enumeration specifies how a string is aligned in reference to the bounding rectangle. A bounding rectangle is used to define the area in which the text displays.

NameValueDescription
StringAlignmentNear0Specifies that alignment is towards the origin of the bounding rectangle. May be used for alignment of characters along the line or for alignment of lines within the rectangle. For a right to left bounding rectangle (StringFormatFlagsDirectionRightToLeft), the origin is at the upper right.
StringAlignmentCenter1Specifies that alignment is centered between origin and extent (width or height) of the formatting rectangle.
StringAlignmentFar2Specifies that alignment is to the far extent (lower right) of the formatting rectangle.

StringDigitSubstitute

The StringDigitSubstitute enumeration specifies how to substitute digits in a string according to a user's locale or language.

NameValueDescription
StringDigitSubstituteUser0Specifies a user-defined substitution scheme.
StringDigitSubstituteNone1Specifies to disable substitutions.
StringDigitSubstituteNational2Specifies substitution digits that correspond with the official national language of the user's locale.
StringDigitSubstituteTraditional3Specifies substitution digits that correspond with the user's native script or language, which may be different from the official national language of the user's locale.

StringFormatFlags

The StringFormatFlags enumeration specifies text layout information (such as orientation and clipping) and display manipulations (such as ellipsis insertion, digit substitution, and representation of characters that are not supported by a font).

NameValueDescription
StringFormatFlagsDirectionRightToLeft&h00000001Specifies that reading order is right to left. For horizontal text, characters are read from right to left. For vertical text, columns are read from right to left. By default, horizontal or vertical text is read from left to right.
StringFormatFlagsDirectionVertical&h00000002Specifies that individual lines of text are drawn vertically on the display device. By default, lines of text are horizontal, each new line below the previous line.
StringFormatFlagsNoFitBlackBox&h00000004Specifies that parts of characters are allowed to overhang the string's layout rectangle. By default, characters are first aligned inside the rectangle's boundaries, then any characters which still overhang the boundaries are repositioned to avoid any overhang and thereby avoid affecting pixels outside the layout rectangle. An italic, lowercase letter F (f) is an example of a character that may have overhanging parts. Setting this flag ensures that the character aligns visually with the lines above and below but may cause parts of characters, which lie outside the layout rectangle, to be clipped or painted.
StringFormatFlagsDisplayFormatControl&h00000020Specifies that Unicode layout control characters are displayed with a representative character.
StringFormatFlagsNoFontFallback&h00000400Specifies that an alternate font is used for characters that are not supported in the requested font. By default, any missing characters are displayed with the "fonts missing" character, usually an open square.
StringFormatFlagsMeasureTrailingSpaces&h00000800Specifies that the space at the end of each line is included in a string measurement. By default, the boundary rectangle returned by the GdipMeasureString method excludes the space at the end of each line. Set this flag to include that space in the measurement.
StringFormatFlagsNoWrap&h00001000Specifies that the wrapping of text to the next line is disabled. NoWrap is implied when a point of origin is used instead of a layout rectangle. When drawing text within a rectangle, by default, text is broken at the last word boundary that is inside the rectangle's boundary and wrapped to the next line.
StringFormatFlagsLineLimit&h00002000Specifies that only entire lines are laid out in the layout rectangle. By default, layout continues until the end of the text or until no more lines are visible as a result of clipping, whichever comes first. The default settings allow the last line to be partially obscured by a layout rectangle that is not a whole multiple of the line height. To ensure that only whole lines are seen, set this flag and be careful to provide a layout rectangle at least as tall as the height of one line.
StringFormatFlagsNoClip&h00004000Specifies that characters overhanging the layout rectangle and text extending outside the layout rectangle are allowed to show. By default, all overhanging characters and text that extends outside the layout rectangle are clipped. Any trailing spaces (spaces that are at the end of a line) that extend outside the layout rectangle are clipped. Therefore, the setting of this flag will have an effect on a string measurement if trailing spaces are being included in the measurement. If clipping is enabled, trailing spaces that extend outside the layout rectangle are not included in the measurement. If clipping is disabled, all trailing spaces are included in the measurement, regardless of whether they are outside the layout rectangle.
StringFormatFlagsBypassGDI&h80000000
Remarks

Multiple flags set can produce combined effects:

  • When both StringFormatFlagsDirectionVertical and StringFormatFlagsDirectionRightToLeft are set, individual lines of text are drawn vertically. The first line starts at the right edge of the layout rectangle; the second line of text is to the left of the first line, and so on.
  • When StringFormatFlagsDirectionVertical is set and StringFormatFlagsDirectionRightToLeft is not set, individual lines of text are drawn vertically. The first line starts at the left edge of the layout rectangle; the second line of text is to the right of the first line.
  • When StringFormatFlagsDirectionRightToLeft is set and StringFormatFlagsDirectionVertical is not set, the individual lines of text are horizontal and the reading order is from right to left. This setting does not change the order in which characters are displayed, it simply specifies the order in which characters can be read.

The StringFormatFlagsDirectionVertical and StringFormatFlagsDirectionRightToLeft flags can affect string alignment.


StringTrimming

The StringTrimming enumeration specifies how to trim characters from a string so that the string fits into a layout rectangle. The layout rectangle is used to position and size the display string.

NameValueDescription
StringTrimmingNone0Specifies that no trimming is done.
StringTrimmingCharacter1Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle. This is the default.
StringTrimmingWord2Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle.
StringTrimmingEllipsisCharacter3Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle and an ellipsis (...) is inserted after the character.
StringTrimmingEllipsisWord4Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle and an ellipsis (...) is inserted after the word.
StringTrimmingEllipsisPath5Specifies that the center is removed from the string and replaced by an ellipsis. The algorithm keeps as much of the last portion of the string as possible.
Remarks

Trimming affects only the last visible or partly visible (due to clipping) line of text.


TestControlEnum

Used for internal testing of GDI+. Specifies changes in image-processing behavior.

NameValueDescription
TestControlForceBilinear0Allows the use of the the InerpolationModeBilinear algorithm is used.
TestControlForceNoICM1Allows to ignore the ICM profiles when images are loaded into memory.
TestControlGetBuildNumber2Gets the GDI+ build number.

TextRenderingHint

The TextRenderingHint enumeration specifies the process used to render text. The process affects the quality of the text.

NameValueDescription
TextRenderingHintSystemDefault0Specifies that a character is drawn using the currently selected system font smoothing mode (also called a rendering hint).
TextRenderingHintSingleBitPerPixelGridFit1Specifies that a character is drawn using its glyph bitmap and hinting to improve character appearance on stems and curvature.
TextRenderingHintSingleBitPerPixel2Specifies that a character is drawn using its glyph bitmap and no hinting. This results in better performance at the expense of quality.
TextRenderingHintAntiAliasGridFit3Specifies that a character is drawn using its antialiased glyph bitmap and hinting. This results in much better quality due to antialiasing at a higher performance cost.
TextRenderingHintAntiAlias4Specifies that a character is drawn using its antialiased glyph bitmap and no hinting. Stem width differences may be noticeable because hinting is turned off.
TextRenderingHintClearTypeGridFit5Specifies that a character is drawn using its glyph ClearType bitmap and hinting. This type of text rendering cannot be used along with CompositingModeSourceCopy. Windows XP and Windows Server 2003 and later versions of Windows only: ClearType rendering is supported only on Windows XP and Windows Server 2003 and later versions of Windows. Therefore, TextRenderingHintClearTypeGridFit is ignored on other operating systems even though GDI+ is supported on those operating systems.
Remarks

The quality associated with each process varies according to the circumstances. TextRenderingHintClearTypeGridFit provides the best quality for most LCD monitors and relatively small font sizes. TextRenderingHintAntiAlias provides the best quality for rotated text. Generally, a process that produces higher quality text is slower than a process that produces lower quality text.


Unit

The Unit enumeration specifies the unit of measure for a given data type.

NameValueDescription
UnitWorld0Specifies world coordinates, a nonphysical unit.
UnitDisplay1Specifies display units. For example, if the display device is a monitor, then the unit is 1 pixel.
UnitPixel2Specifies that a unit is 1 pixel.
UnitPoint3Specifies that a unit is 1 point or 1/72 inch.
UnitInch4Specifies that a unit is 1 inch.
UnitDocument5Specifies that a unit is 1/300 inch.
UnitMillimeter6Specifies that a unit is 1 millimeter.

WarpMode

The WarpMode enumeration specifies warp modes that can be used to transform images.

NameValueDescription
WarpModePerspective0Specifies the perspective warp mode.
WarpModeBilinear1Specifies the bilinear warp mode.

WrapMode

The WrapMode enumeration specifies how repeated copies of an image are used to tile an area.

NameValueDescription
WrapModeTile0Specifies tiling without flipping.
WrapModeTileFlipX1Specifies that tiles are flipped horizontally as you move from one tile to the next in a row.
WrapModeTileFlipY2Specifies that tiles are flipped vertically as you move from one tile to the next in a column.
WrapModeTileFlipXY3Specifies that tiles are flipped horizontally as you move along a row and flipped vertically as you move along a column.
WrapModeClamp4Specifies that no tiling takes place.