Home COM GDI+ WebBrowser Data Access 

GDI+ Enumerations

 

BrushType

 

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

 

 

%BrushTypeSolidColor = 0

%BrushTypeHatchFill = 1

%BrushTypeTextureFill = 2

%BrushTypePathGradient = 3

%BrushTypeLinearGradient = 4

 

 

Color

 

%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 = &HFFFFFF

%ARGB_Turquoise = &HFF40E0D0

%ARGB_Violet = &HFFEE82EE

%ARGB_Wheat = &HFFF5DEB3

%ARGB_White = &HFFFFFFFF

%ARGB_WhiteSmoke = &HFFF5F5F5

%ARGB_Yellow = &HFFFFFF00

%ARGB_YellowGreen = &HFF9ACD32

 

%AlphaShift = 24

%RedShift = 16

%GreenShift = 8

%BlueShift = 0

 

%AlphaMask = &HFF000000

%RedMask = &HFF0000

%GreenMask = &HFF00

%BlueMask = &HFF

 

 

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.

 

 

%ColorAdjustTypeDefault = 0

%ColorAdjustTypeBitmap  = 1

%ColorAdjustTypeBrush   = 2

%ColorAdjustTypePen     = 3

%ColorAdjustTypeText    = 4

%ColorAdjustTypeCount   = 5

%ColorAdjustTypeAny     = 6

 

 

ColorChannelFlags

 

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

 

 

%ColorChannelFlagsC    = 0

%ColorChannelFlagsM    = 1

%ColorChannelFlagsY    = 2

%ColorChannelFlagsK    = 3

%ColorChannelFlagsLast = 4

 

 

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.

 

 

%ColorMatrixFlagsDefault = 0

%ColorMatrixFlagsSkipGrays = 1

%ColorMatrixFlagsAltGray = 2

 

 

ColorMode

 

%ColorModeARGB32 = 0

%ColorModeARGB64 = 1

 

 

CombineMode

 

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

 

 

%CombineModeReplace      = 0

%CombineModeIntersect    = 1

%CombineModeUnion        = 2

%CombineModeXor          = 3

%CombineModeExclude      = 4

%CombineModeComplement   = 5

 

 

CompositingMode

 

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

 

 

%CompositingModeSourceOver = 0

%CompositingModeSourceCopy = 1

 

 

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.

 

 

%CompositingQualityInvalid          = %QualityModeInvalid

%CompositingQualityDefault          = %QualityModeDefault

%CompositingQualityHighSpeed        = %QualityModeLow

%CompositingQualityHighQuality      = %QualityModeHigh

%CompositingQualityGammaCorrected   = 3

%CompositingQualityAssumeLinear     = 4

 

 

CoordinateSpace

 

The CoordinateSpace enumeration specifies coordinate spaces. This enumeration is used by the GdipTransformPoints and GdipTransformPointsI functions, which converts points from one coordinate space to another.

 

 

%CoordinateSpaceWorld  = 0

%CoordinateSpacePage   = 1

%CoordinateSpaceDevice = 2

 

 

CustomLineCapType

 

%CustomLineCapTypeDefault = 0

%CustomLineCapTypeAdjustableArrow = 1

 

 

DashCap

 

The DashCap enumeration specifies the type of graphic shape to use on both ends of each dash in a dashed line.

 

 

%DashCapFlat = 0

%DashCapRound = 2

%DashCapTriangle = 3

 

 

DashStyle

 

The DashStyle enumeration specifies 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.

 

 

%DashStyleSolid      = 0

%DashStyleDash       = 1

%DashStyleDot        = 2

%DashStyleDashDot    = 3

%DashStyleDashDotDot = 4

%DashStyleCustom     = 5

 

 

DriverStringOptions

 

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

 

 

%DriverStringOptionsCmapLookup      = 1

%DriverStringOptionsVertical        = 2

%DriverStringOptionsRealizedAdvance = 4

%DriverStringOptionsLimitSubpixel   = 8

 

 

EmfPlusRecordType

 

The EmfPlusRecordType enumeration identifies metafile record types used in Microsoft 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.

 

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.

 

Elements that have the EmfPlusRecordType prefix are specific to GDI+. Most of those elements correspond to the Graphics functions. 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.

 

 

%WmfRecordTypeSetBkColor = 66049

%WmfRecordTypeSetBkMode = 65794

%WmfRecordTypeSetMapMode = 5795

%WmfRecordTypeSetROP2 = 65796

%WmfRecordTypeSetRelAbs = 65797

%WmfRecordTypeSetPolyFillMode = 65798

%WmfRecordTypeSetStretchBltMode = 65799

%WmfRecordTypeSetTextCharExtra = 65800

%WmfRecordTypeSetTextColor = 66057

%WmfRecordTypeSetTextJustification = 66058

%WmfRecordTypeSetWindowOrg = 66059

%WmfRecordTypeSetWindowExt = 66060

%WmfRecordTypeSetViewportOrg = 6061

%WmfRecordTypeSetViewportExt = 66062

%WmfRecordTypeOffsetWindowOrg = 66063

%WmfRecordTypeScaleWindowExt = 6576

%WmfRecordTypeOffsetViewportOrg = 6065

%WmfRecordTypeScaleViewportExt = 66578

%WmfRecordTypeLineTo = 66067

%WmfRecordTypeMoveTo = 6068

%WmfRecordTypeExcludeClipRect = 66581

%WmfRecordTypeIntersectClipRect = 66582

%WmfRecordTypeArc = 67607

%WmfRecordTypeEllipse = 66584

%WmfRecordTypeFloodFill = 66585

%WmfRecordTypePie = 67610

%WmfRecordTypeRectangle = 66587

%WmfRecordTypeRoundRect = 67100

%WmfRecordTypePatBlt = 67101

%WmfRecordTypeSaveDC = 5566

%WmfRecordTypeSetPixel = 66591

%WmfRecordTypeOffsetClipRgn = 66080

%WmfRecordTypeTextOut = 66849

%WmfRecordTypeBitBlt = 67874

%WmfRecordTypeStretchBlt = 68387

%WmfRecordTypePolygon = 66340

%WmfRecordTypePolyline = 66341

%WmfRecordTypeEscape = 67110

%WmfRecordTypeRestoreDC = 65831

%WmfRecordTypeFillRegion = 66088

%WmfRecordTypeFrameRegion = 66601

%WmfRecordTypeInvertRegion = 65834

%WmfRecordTypePaintRegion = 65835

%WmfRecordTypeSelectClipRegion = 65836

%WmfRecordTypeSelectObject = 65837

%WmfRecordTypeSetTextAlign = 65838

%WmfRecordTypeDrawText = 67119

%WmfRecordTypeChord = 67632

%WmfRecordTypeSetMapperFlags = 6097

%WmfRecordTypeExtTextOut = 68146

%WmfRecordTypeSetDIBToDev = 68915

%WmfRecordTypeSelectPalette = 66100

%WmfRecordTypeRealizePalette = 65589

%WmfRecordTypeAnimatePalette = 66614

%WmfRecordTypeSetPalEntries = 65591

%WmfRecordTypePolyPolygon = 66872

%WmfRecordTypeResizePalette = 65849

%WmfRecordTypeDIBBitBlt = 67904

%WmfRecordTypeDIBStretchBlt = 68417

%WmfRecordTypeDIBCreatePatternBrush = 65858

%WmfRecordTypeStretchDIB = 69443

%WmfRecordTypeExtFloodFill = 66888

%WmfRecordTypeSetLayout = 65865

%WmfRecordTypeResetDC = 65868

%WmfRecordTypeStartDoc = 65869

%WmfRecordTypeStartPage = 65615

%WmfRecordTypeEndPage = 65616

%WmfRecordTypeAbortDoc = 65618

%WmfRecordTypeEndDoc = 65630

%WmfRecordTypeDeleteObject = 66032

%WmfRecordTypeCreatePalette = 65783

%WmfRecordTypeCreateBrush = 65784

%WmfRecordTypeCreatePatternBrush = 66041

%WmfRecordTypeCreatePenIndirect = 66298

%WmfRecordTypeCreateFontIndirect = 66299

%WmfRecordTypeCreateBrushIndirect = 66300

%WmfRecordTypeCreateBitmapIndirect = 66301

%WmfRecordTypeCreateRegion = 67327

 

%EmfRecordTypeHeader = 1

%EmfRecordTypePolyBezier = 2

%EmfRecordTypePolygon = 3

%EmfRecordTypePolyline = 4

%EmfRecordTypePolyBezierTo = 5

%EmfRecordTypePolyLineTo = 6

%EmfRecordTypePolyPolyline = 7

%EmfRecordTypePolyPolygon = 8

%EmfRecordTypeSetWindowExtEx = 9

%EmfRecordTypeSetWindowOrgEx = 10

%EmfRecordTypeSetViewportExtEx = 11

%EmfRecordTypeSetViewportOrgEx = 12

%EmfRecordTypeSetBrushOrgEx = 13

%EmfRecordTypeEOF = 14

%EmfRecordTypeSetPixelV = 15

%EmfRecordTypeSetMapperFlags = 16

%EmfRecordTypeSetMapMode = 17

%EmfRecordTypeSetBkMode = 18

%EmfRecordTypeSetPolyFillMode = 19

%EmfRecordTypeSetROP2 = 20

%EmfRecordTypeSetStretchBltMode = 21

%EmfRecordTypeSetTextAlign = 22

%EmfRecordTypeSetColorAdjustment = 23

%EmfRecordTypeSetTextColor = 24

%EmfRecordTypeSetBkColor = 25

%EmfRecordTypeOffsetClipRgn = 26

%EmfRecordTypeMoveToEx = 27

%EmfRecordTypeSetMetaRgn = 28

%EmfRecordTypeExcludeClipRect = 29

%EmfRecordTypeIntersectClipRect = 30

%EmfRecordTypeScaleViewportExtEx = 31

%EmfRecordTypeScaleWindowExtEx = 32

%EmfRecordTypeSaveDC = 33

%EmfRecordTypeRestoreDC = 34

%EmfRecordTypeSetWorldTransform = 35

%EmfRecordTypeModifyWorldTransform = 36

%EmfRecordTypeSelectObject = 37

%EmfRecordTypeCreatePen = 38

%EmfRecordTypeCreateBrushIndirect = 39

%EmfRecordTypeDeleteObject = 40

%EmfRecordTypeAngleArc = 41

%EmfRecordTypeEllipse = 42

%EmfRecordTypeRectangle = 43

%EmfRecordTypeRoundRect = 44

%EmfRecordTypeArc = 45

%EmfRecordTypeChord = 46

%EmfRecordTypePie = 47

%EmfRecordTypeSelectPalette = 48

%EmfRecordTypeCreatePalette = 49

%EmfRecordTypeSetPaletteEntries = 50

%EmfRecordTypeResizePalette = 51

%EmfRecordTypeRealizePalette = 52

%EmfRecordTypeExtFloodFill = 53

%EmfRecordTypeLineTo = 54

%EmfRecordTypeArcTo = 55

%EmfRecordTypePolyDraw = 56

%EmfRecordTypeSetArcDirection = 57

%EmfRecordTypeSetMiterLimit = 58

%EmfRecordTypeBeginPath = 59

%EmfRecordTypeEndPath = 60

%EmfRecordTypeCloseFigure = 61

%EmfRecordTypeFillPath = 62

%EmfRecordTypeStrokeAndFillPath = 63

%EmfRecordTypeStrokePath = 64

%EmfRecordTypeFlattenPath = 65

%EmfRecordTypeWidenPath = 66

%EmfRecordTypeSelectClipPath = 67

%EmfRecordTypeAbortPath = 68

%EmfRecordTypeReserved_069 = 69

%EmfRecordTypeGdiComment = 70

%EmfRecordTypeFillRgn = 71

%EmfRecordTypeFrameRgn = 72

%EmfRecordTypeInvertRgn = 73

%EmfRecordTypePaintRgn = 74

%EmfRecordTypeExtSelectClipRgn = 75

%EmfRecordTypeBitBlt = 76

%EmfRecordTypeStretchBlt = 77

%EmfRecordTypeMaskBlt = 78

%EmfRecordTypePlgBlt = 79

%EmfRecordTypeSetDIBitsToDevice = 80

%EmfRecordTypeStretchDIBits = 81

%EmfRecordTypeExtCreateFontIndirect = 82

%EmfRecordTypeExtTextOutA = 83

%EmfRecordTypeExtTextOutW = 84

%EmfRecordTypePolyBezier16 = 85

%EmfRecordTypePolygon16 = 86

%EmfRecordTypePolyline16 = 87

%EmfRecordTypePolyBezierTo16 = 88

%EmfRecordTypePolylineTo16 = 89

%EmfRecordTypePolyPolyline16 = 90

%EmfRecordTypePolyPolygon16 = 91

%EmfRecordTypePolyDraw16 = 92

%EmfRecordTypeCreateMonoBrush = 93

%EmfRecordTypeCreateDIBPatternBrushPt = 94

%EmfRecordTypeExtCreatePen = 95

%EmfRecordTypePolyTextOutA = 96

%EmfRecordTypePolyTextOutW = 97

%EmfRecordTypeSetICMMode = 98

%EmfRecordTypeCreateColorSpace = 99

%EmfRecordTypeSetColorSpace = 100

%EmfRecordTypeDeleteColorSpace = 101

%EmfRecordTypeGLSRecord = 102

%EmfRecordTypeGLSBoundedRecord = 103

%EmfRecordTypePixelFormat = 104

%EmfRecordTypeDrawEscape = 105

%EmfRecordTypeExtEscape = 106

%EmfRecordTypeStartDoc = 107

%EmfRecordTypeSmallTextOut = 108

%EmfRecordTypeForceUFIMapping = 109

%EmfRecordTypeNamedEscape = 110

%EmfRecordTypeColorCorrectPalette = 111

%EmfRecordTypeSetICMProfileA = 112

%EmfRecordTypeSetICMProfileW = 113

%EmfRecordTypeAlphaBlend = 114

%EmfRecordTypeSetLayout = 115

%EmfRecordTypeTransparentBlt = 116

%EmfRecordTypeReserved_117 = 117

%EmfRecordTypeGradientFill = 118

%EmfRecordTypeSetLinkedUFIs = 119

%EmfRecordTypeSetTextJustification = 120

%EmfRecordTypeColorMatchToTargetW = 121

%EmfRecordTypeCreateColorSpaceW = 122

%EmfRecordTypeMax = 122

%EmfRecordTypeMin = 1

%EmfPlusRecordTypeInvalid = 16384

%EmfPlusRecordTypeHeader = 16385

%EmfPlusRecordTypeEndOfFile = 16386

%EmfPlusRecordTypeComment = 16387

%EmfPlusRecordTypeGetDC = 16388

%EmfPlusRecordTypeMultiFormatStart = 16389

%EmfPlusRecordTypeMultiFormatSection = 16390

%EmfPlusRecordTypeMultiFormatEnd = 16391

%EmfPlusRecordTypeObject = 16392

%EmfPlusRecordTypeClear = 16393

%EmfPlusRecordTypeFillRects = 16394

%EmfPlusRecordTypeDrawRects = 16395

%EmfPlusRecordTypeFillPolygon = 16396

%EmfPlusRecordTypeDrawLines = 16397

%EmfPlusRecordTypeFillEllipse = 16398

%EmfPlusRecordTypeDrawEllipse = 16399

%EmfPlusRecordTypeFillPie = 16400

%EmfPlusRecordTypeDrawPie = 16401

%EmfPlusRecordTypeDrawArc = 16402

%EmfPlusRecordTypeFillRegion = 16403

%EmfPlusRecordTypeFillPath = 16404

%EmfPlusRecordTypeDrawPath = 16405

%EmfPlusRecordTypeFillClosedCurve = 16406

%EmfPlusRecordTypeDrawClosedCurve = 16407

%EmfPlusRecordTypeDrawCurve = 16408

%EmfPlusRecordTypeDrawBeziers = 16409

%EmfPlusRecordTypeDrawImage = 16410

%EmfPlusRecordTypeDrawImagePoints = 16411

%EmfPlusRecordTypeDrawString = 16412

%EmfPlusRecordTypeSetRenderingOrigin = 16413

%EmfPlusRecordTypeSetAntiAliasMode = 16414

%EmfPlusRecordTypeSetTextRenderingHint = 16415

%EmfPlusRecordTypeSetTextContrast = 16416

%EmfPlusRecordTypeSetInterpolationMode = 16417

%EmfPlusRecordTypeSetPixelOffsetMode = 16418

%EmfPlusRecordTypeSetCompositingMode = 16419

%EmfPlusRecordTypeSetCompositingQuality = 16420

%EmfPlusRecordTypeSave = 16421

%EmfPlusRecordTypeRestore = 16422

%EmfPlusRecordTypeBeginContainer = 16423

%EmfPlusRecordTypeBeginContainerNoParams = 16424

%EmfPlusRecordTypeEndContainer = 16425

%EmfPlusRecordTypeSetWorldTransform = 16426

%EmfPlusRecordTypeResetWorldTransform = 16427

%EmfPlusRecordTypeMultiplyWorldTransform = 16428

%EmfPlusRecordTypeTranslateWorldTransform = 16429

%EmfPlusRecordTypeScaleWorldTransform = 16430

%EmfPlusRecordTypeRotateWorldTransform = 16431

%EmfPlusRecordTypeSetPageTransform = 16432

%EmfPlusRecordTypeResetClip = 16433

%EmfPlusRecordTypeSetClipRect = 16434

%EmfPlusRecordTypeSetClipPath = 16435

%EmfPlusRecordTypeSetClipRegion = 16436

%EmfPlusRecordTypeOffsetClip = 16437

%EmfPlusRecordTypeDrawDriverString = 16438

%EmfPlusRecordTotal = 16439

%EmfPlusRecordTypeMax = 16438

%EmfPlusRecordTypeMin = 16385


 

 

EmfToWmfBitsFlags

 

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

 

 

%EmfToWmfBitsFlagsDefault          = &H00000000

%EmfToWmfBitsFlagsEmbedEmf         = &H00000001

%EmfToWmfBitsFlagsIncludePlaceable = &H00000002

%EmfToWmfBitsFlagsNoXORClip        = &H00000004

 

 

EmfType

 

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

 

 

%EmfTypeEmfOnly = %MetafileTypeEmf

%EmfTypeEmfPlusOnly = %MetafileTypeEmfPlusOnly

%EmfTypeEmfPlusDual = %MetafileTypeEmfPlusDual

 

 

EncoderParameterValueType

 

The EncoderParameterValueType enumeration 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.

 

 

%EncoderParameterValueTypeByte = 1

%EncoderParameterValueTypeASCII = 2

%EncoderParameterValueTypeShort = 3

%EncoderParameterValueTypeLong = 4

%EncoderParameterValueTypeRational = 5

%EncoderParameterValueTypeLongRange = 6

%EncoderParameterValueTypeUndefined = 7

%EncoderParameterValueTypeRationalRange = 8

%EncoderParameterValueTypePointer = 9

 

 

EncoderValue

 

The EncoderValue enumeration specifies values that can be passed as arguments to image encoders.

 

 

%EncoderValueColorTypeCMYK             = 0

%EncoderValueColorTypeYCCK             = 1

%EncoderValueCompressionLZW            = 2

%EncoderValueCompressionCCITT3         = 3

%EncoderValueCompressionCCITT4         = 4

%EncoderValueCompressionRle            = 5

%EncoderValueCompressionNone           = 6

%EncoderValueScanMethodInterlaced      = 7

%EncoderValueScanMethodNonInterlaced   = 8

%EncoderValueVersionGif87              = 9

%EncoderValueVersionGif89              = 10

%EncoderValueRenderProgressive         = 11

%EncoderValueRenderNonProgressive      = 12

%EncoderValueTransformRotate90         = 13

%EncoderValueTransformRotate180        = 14

%EncoderValueTransformRotate270        = 15

%EncoderValueTransformFlipHorizontal   = 16

%EncoderValueTransformFlipVertical     = 17

%EncoderValueMultiFrame                = 18

%EncoderValueLastFrame                 = 19

%EncoderValueFlush                     = 20

%EncoderValueFrameDimensionTime        = 21

%EncoderValueFrameDimensionResolution  = 22

%EncoderValueFrameDimensionPage        = 23

 

 

FillMode

 

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

 

 

%FillModeAlternate = 0

%FillModeWinding   = 1

 

 

FlushIntention

 

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

 

 

%FlushIntentionFlush = 0

%FlushIntentionSync = 1

 

 

FontStyle

 

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

 

 

%FontStyleRegular = 0

%FontStyleBold = 1

%FontStyleItalic = 2

%FontStyleBoldItalic = 3

%FontStyleUnderline = 4

%FontStyleStrikeout = 8

 

 

GenericFontFamily

 

%GenericFontFamilySerif = 0

%GenericFontFamilySansSerif = 1

%GenericFontFamilyMonospace = 2

 

 

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.

 

 

%HatchStyleHorizontal                   = 0

%HatchStyleVertical                     = 1

%HatchStyleForwardDiagonal              = 2

%HatchStyleBackwardDiagonal             = 3

%HatchStyleCross                        = 4

%HatchStyleDiagonalCross                = 5

%HatchStyle05Percent                    = 6

%HatchStyle10Percent                    = 7

%HatchStyle20Percent                    = 8

%HatchStyle25Percent                    = 9

%HatchStyle30Percent                    = 10

%HatchStyle40Percent                    = 11

%HatchStyle50Percent                    = 12

%HatchStyle60Percent                    = 13

%HatchStyle70Percent                    = 14

%HatchStyle75Percent                    = 15

%HatchStyle80Percent                    = 16

%HatchStyle90Percent                    = 17

%HatchStyleLightDownwardDiagonal        = 18

%HatchStyleLightUpwardDiagonal          = 19

%HatchStyleDarkDownwardDiagonal         = 20

%HatchStyleDarkUpwardDiagonal           = 21

%HatchStyleWideDownwardDiagonal         = 22

%HatchStyleWideUpwardDiagonal           = 23

%HatchStyleLightVertical                = 24

%HatchStyleLightHorizontal              = 25

%HatchStyleNarrowVertical               = 26

%HatchStyleNarrowHorizontal             = 27

%HatchStyleDarkVertical                 = 28

%HatchStyleDarkHorizontal               = 29

%HatchStyleDashedDownwardDiagonal       = 30

%HatchStyleDashedUpwardDiagonal         = 31

%HatchStyleDashedHorizontal             = 32

%HatchStyleDashedVertical               = 33

%HatchStyleSmallConfetti                = 34

%HatchStyleLargeConfetti                = 35

%HatchStyleZigZag                       = 36

%HatchStyleWave                         = 37

%HatchStyleDiagonalBrick                = 38

%HatchStyleHorizontalBrick              = 39

%HatchStyleWeave                        = 40

%HatchStylePlaid                        = 41

%HatchStyleDivot                        = 42

%HatchStyleDottedGrid                   = 43

%HatchStyleDottedDiamond                = 44

%HatchStyleShingle                      = 45

%HatchStyleTrellis                      = 46

%HatchStyleSphere                       = 47

%HatchStyleSmallGrid                    = 48

%HatchStyleSmallCheckerBoard            = 49

%HatchStyleLargeCheckerBoard            = 50

%HatchStyleOutlinedDiamond              = 51

%HatchStyleSolidDiamond                 = 52

 

%HatchStyleTotal     = 53

%HatchStyleLargeGrid = %HatchStyleCross

 

%HatchStyleMin       = %HatchStyleHorizontal

%HatchStyleMax       = %HatchStyleTotal - 1

 

 

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.

 

 

%HotkeyPrefixNone = 0

%HotkeyPrefixShow = 1

%HotkeyPrefixHide = 2

 

 

ImageCodecFlags

 

The ImageCodecFlags enumeration indicates attributes of an image codec.

 

 

%ImageCodecFlagsEncoder        = &H00000001

%ImageCodecFlagsDecoder        = &H00000002

%ImageCodecFlagsSupportBitmap  = &H00000004

%ImageCodecFlagsSupportVector  = &H00000008

%ImageCodecFlagsSeekableEncode = &H00000010

%ImageCodecFlagsBlockingDecode = &H00000020

%ImageCodecFlagsBuiltin        = &H00010000

%ImageCodecFlagsSystem         = &H00020000

%ImageCodecFlagsUser           = &H00040000

 

 

ImageFlags

 

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

 

 

%ImageFlagsNone                = 0

 

'// Low-word: shared with SINKFLAG_x

 

%ImageFlagsScalable            = &H0001

%ImageFlagsHasAlpha            = &H0002

%ImageFlagsHasTranslucent      = &H0004

%ImageFlagsPartiallyScalable   = &H0008

 

'// Low-word: color space definition

 

%ImageFlagsColorSpaceRGB       = &H0010

%ImageFlagsColorSpaceCMYK      = &H0020

%ImageFlagsColorSpaceGRAY      = &H0040

%ImageFlagsColorSpaceYCBCR     = &H0080

%ImageFlagsColorSpaceYCCK      = &H0100

 

'// Low-word: image size info

 

%ImageFlagsHasRealDPI          = &H1000

%ImageFlagsHasRealPixelSize    = &H2000

 

'// High-word

 

%ImageFlagsReadOnly            = &H00010000

%ImageFlagsCaching             = &H00020000

 

 

ImageLockMode

 

The ImageLockMode enumeration 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.

 

 

%ImageLockModeRead         = &H0001

%ImageLockModeWrite        = &H0002

%ImageLockModeUserInputBuf = &H0004

 

 

ImageType

 

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

 

 

%ImageTypeUnknown   = 0

%ImageTypeBitmap    = 1

%ImageTypeMetafile  = 2

 

 

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.

 

 

%InterpolationModeInvalid = %QualityModeInvalid

%InterpolationModeDefault = %QualityModeDefault

%InterpolationModeLowQuality = %QualityModeLow

%InterpolationModeHighQuality = %QualityModeHigh

%InterpolationModeBilinear = 3

%InterpolationModeBicubic = 4

%InterpolationModeNearestNeighbor = 5

%InterpolationModeHighQualityBilinear = 6

%InterpolationModeHighQualityBicubic = 7

 

 

ItemDataPosition

 

The ItemDataPosition enumeration is used to specify the location of custom metadata in an image file.

 

 

%ItemDataPositionAfterHeader = &H0

%ItemDataPositionAfterPalette = &H1

%ItemDataPositionAfterBits = &H2

 

 

LinearGradientMode

 

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

 

 

%LinearGradientModeHorizontal         = 0

%LinearGradientModeVertical           = 1

%LinearGradientModeForwardDiagonal    = 2

%LinearGradientModeBackwardDiagonal   = 3

 

 

LineCap

 

The LineCap enumeration specifies 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.

 

 

%LineCapFlat = 0

%LineCapSquare = 1

%LineCapRound = 2

%LineCapTriangle = 3

%LineCapNoAnchor = &H10

%LineCapSquareAnchor = &H11

%LineCapRoundAnchor = &H12

%LineCapDiamondAnchor = &H13

%LineCapArrowAnchor = &H14

%LineCapCustom = &HFF

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

 

 

%LineJoinMiter = 0

%LineJoinBevel = 1

%LineJoinRound = 2

%LineJoinMiterClipped = 3

 

 

MatrixOrder

 

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

 

 

%MatrixOrderPrepend = 0

%MatrixOrderAppend = 1

 

 

MetafileFrameUnit

 

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

 

 

%MetafileFrameUnitPixel      = %UnitPixel

%MetafileFrameUnitPoint      = %UnitPoint

%MetafileFrameUnitInch       = %UnitInch

%MetafileFrameUnitDocument   = %UnitDocument

%MetafileFrameUnitMillimeter = %UnitMillimeter

%MetafileFrameUnitGdi        = 7

 

 

MetafileType

 

The MetafileType enumeration specifies types of metafiles.

 

 

%MetafileTypeInvalid           = 0

%MetafileTypeWmf               = 1

%MetafileTypeWmfPlaceable      = 2

%MetafileTypeEmf               = 3

%MetafileTypeEmfPlusOnly       = 4

%MetafileTypeEmfPlusDual       = 5

 

 

ObjectType

 

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

 

 

%ObjectTypeInvalid          = 0

%ObjectTypeBrush            = 1

%ObjectTypePen              = 2

%ObjectTypePath             = 3

%ObjectTypeRegion           = 4

%ObjectTypeImage            = 5

%ObjectTypeFont             = 6

%ObjectTypeStringFormat     = 7

%ObjectTypeImageAttributes  = 8

%ObjectTypeCustomLineCap    = 9

 

%ObjectTypeMax = %ObjectTypeCustomLineCap

%ObjectTypeMin = %ObjectTypeBrush

 

 

PaletteFlags

 

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

 

 

%PaletteFlagsHasAlpha    = &H0001

%PaletteFlagsGrayScale   = &H0002

%PaletteFlagsHalftone    = &H0004

 

 

PaletteType

 

The PaletteType enumeration is used by the GdipInitializePalette and  GdipBitmapConvertFormat functions. The members of the enumeration identify several standard color palette formats.

 

 

%PaletteTypeCustom = 0

%PaletteTypeOptimal = 1

%PaletteTypeFixedBW = 2

%PaletteTypeFixedHalftone8 = 3

%PaletteTypeFixedHalftone27 = 4

%PaletteTypeFixedHalftone64 = 5

%PaletteTypeFixedHalftone125 = 6

%PaletteTypeFixedHalftone216 = 7

%PaletteTypeFixedHalftone252 = 8

%PaletteTypeFixedHalftone256 = 9

 

 

PathPointType

 

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.

 

 

%PathPointTypeStart           = 0

%PathPointTypeLine            = 1

%PathPointTypeBezier          = 3

%PathPointTypePathTypeMask    = &H07

%PathPointTypeDashMode        = &H10

%PathPointTypePathMarker      = &H20

%PathPointTypeCloseSubpath    = &H80

%PathPointTypeBezier3         = 3

 

 

PenAlignment

 

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

 

 

%PenAlignmentCenter = 0

%PenAlignmentInset = 1

 

 

PenType

 

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

 

 

%PenTypeSolidColor = %BrushTypeSolidColor

%PenTypeHatchFill = %BrushTypeHatchFill

%PenTypeTextureFill = %BrushTypeTextureFill

%PenTypePathGradient = %BrushTypePathGradient

%PenTypeLinearGradient = %BrushTypeLinearGradient

%PenTypeUnknown = -1

 

 

PixelOffsetMode

 

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

 

 

%PixelOffsetModeInvalid = %QualityModeInvalid

%PixelOffsetModeDefault = %QualityModeDefault

%PixelOffsetModeHighSpeed = %QualityModeLow

%PixelOffsetModeHighQuality = %QualityModeHigh

%PixelOffsetModeNone = 3

%PixelOffsetModeHalf = 4

 

 

QualityMode

 

The QualityMode enumeration specifies the quality mode.

 

 

%QualityModeInvalid = -1

%QualityModeDefault = 0

%QualityModeLow     = 1

%QualityModeHigh    = 2

 

 

RotateFlipType

 

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

 

 

%RotateNoneFlipNone = 0

%Rotate90FlipNone   = 1

%Rotate180FlipNone  = 2

%Rotate270FlipNone  = 3

 

%RotateNoneFlipX    = 4

%Rotate90FlipX      = 5

%Rotate180FlipX     = 6

%Rotate270FlipX     = 7

 

%RotateNoneFlipY    = %Rotate180FlipX

%Rotate90FlipY      = %Rotate270FlipX

%Rotate180FlipY     = %RotateNoneFlipX

%Rotate270FlipY     = %Rotate90FlipX

 

%RotateNoneFlipXY   = %Rotate180FlipNone

%Rotate90FlipXY     = %Rotate270FlipNone

%Rotate180FlipXY    = %RotateNoneFlipNone

%Rotate270FlipXY    = %Rotate90FlipNone

 

 

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.

 

 

%SmoothingModeInvalid = %QualityModeInvalid

%SmoothingModeDefault = %QualityModeDefault

%SmoothingModeHighSpeed = %QualityModeLow

%SmoothingModeHighQuality = %QualityModeHigh

%SmoothingModeNone = 3

%SmoothingModeAntiAlias = 4

 

 

Status

 

The Status enumeration indicates the result of a Microsoft Windows GDI+ method call.

 

 

%StatusOk = 0

%StatusGenericError = 1

%StatusInvalidParameter = 2

%StatusOutOfMemory = 3

%StatusObjectBusy = 4

%StatusInsufficientBuffer = 5

%StatusNotImplemented = 6

%StatusWin32Error = 7

%StatusWrongState = 8

%StatusAborted = 9

%StatusFileNotFound = 10

%StatusValueOverflow = 11

%StatusAccessDenied = 12

%StatusUnknownImageFormat = 13

%StatusFontFamilyNotFound = 14

%StatusFontStyleNotFound = 15

%StatusNotTrueTypeFont = 16

%StatusUnsupportedGdiplusVersion = 17

%StatusGdiplusNotInitialized = 18

%StatusPropertyNotFound = 19

%StatusPropertyNotSupported = 20

 

 

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.

 

 

%StringAlignmentNear = 0

%StringAlignmentCenter = 1

%StringAlignmentFar = 2

 

 

StringDigitSubstitute

 

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

 

 

%StringDigitSubstituteUser = 0

%StringDigitSubstituteNone = 1

%StringDigitSubstituteNational = 2

%StringDigitSubstituteTraditional = 3

 

 

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

 

 

%StringFormatFlagsDirectionRightToLeft  = &H00000001

%StringFormatFlagsDirectionVertical     = &H00000002

%StringFormatFlagsNoFitBlackBox         = &H00000004

%StringFormatFlagsDisplayFormatControl  = &H00000020

%StringFormatFlagsNoFontFallback        = &H00000400

%StringFormatFlagsMeasureTrailingSpaces = &H00000800

%StringFormatFlagsNoWrap                = &H00001000

%StringFormatFlagsLineLimit             = &H00002000

%StringFormatFlagsNoClip                = &H00004000

 

 

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.

 

 

%StringTrimmingNone = 0

%StringTrimmingCharacter = 1

%StringTrimmingWord = 2

%StringTrimmingEllipsisCharacter = 3

%StringTrimmingEllipsisWord = 4

%StringTrimmingEllipsisPath = 5

 

 

TestControlEnum

 

%TestControlForceBilinear = 0

%TestControlNoICM = 1

%TestControlGetBuildNumber = 2

 

 

TextRenderingHint

 

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

 

 

%TextRenderingHintSystemDefault            = 0

%TextRenderingHintSingleBitPerPixelGridFit = 1

%TextRenderingHintSingleBitPerPixel        = 2

%TextRenderingHintAntiAliasGridFit         = 3

%TextRenderingHintAntiAlias                = 4

%TextRenderingHintClearTypeGridFit         = 5

 

 

Unit

 

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

 

 

%UnitWorld      = 0

%UnitDisplay    = 1

%UnitPixel      = 2

%UnitPoint      = 3

%UnitInch       = 4

%UnitDocument   = 5

%UnitMillimeter = 6

 

 

WarpMode

 

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

 

 

%WarpModePerspective     = 0

%WarpModeBilinear        = 1

 

 

WrapMode

 

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

 

 

%WrapModeTile         = 0

%WrapModeTileFlipX    = 1

%WrapModeTileFlipY    = 2

%WrapModeTileFlipXY   = 3

%WrapModeClamp        = 4

 

 

Page last updated on Monday, 11 December 2006 11:03:03 +0100