GDIPlusConstants.au3 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. #include-once
  2. ; #INDEX# =======================================================================================================================
  3. ; Title .........: GDIPlus_Constants
  4. ; AutoIt Version : 3.3.14.5
  5. ; Language ......: English
  6. ; Description ...: Constants for GDI+
  7. ; Author(s) .....: Valik, Gary Frost, UEZ
  8. ; ===============================================================================================================================
  9. ; #CONSTANTS# ===================================================================================================================
  10. ; Pen Dash Cap Types
  11. Global Const $GDIP_DASHCAPFLAT = 0 ; A square cap that squares off both ends of each dash
  12. Global Const $GDIP_DASHCAPROUND = 2 ; A circular cap that rounds off both ends of each dash
  13. Global Const $GDIP_DASHCAPTRIANGLE = 3 ; A triangular cap that points both ends of each dash
  14. ; Pen Dash Style Types
  15. Global Const $GDIP_DASHSTYLESOLID = 0 ; A solid line
  16. Global Const $GDIP_DASHSTYLEDASH = 1 ; A dashed line
  17. Global Const $GDIP_DASHSTYLEDOT = 2 ; A dotted line
  18. Global Const $GDIP_DASHSTYLEDASHDOT = 3 ; An alternating dash-dot line
  19. Global Const $GDIP_DASHSTYLEDASHDOTDOT = 4 ; An alternating dash-dot-dot line
  20. Global Const $GDIP_DASHSTYLECUSTOM = 5 ; A a user-defined, custom dashed line
  21. ; Encoder Parameter GUIDs
  22. Global Const $GDIP_EPGCHROMINANCETABLE = '{F2E455DC-09B3-4316-8260-676ADA32481C}'
  23. Global Const $GDIP_EPGCOLORDEPTH = '{66087055-AD66-4C7C-9A18-38A2310B8337}'
  24. Global Const $GDIP_EPGCOMPRESSION = '{E09D739D-CCD4-44EE-8EBA-3FBF8BE4FC58}'
  25. Global Const $GDIP_EPGLUMINANCETABLE = '{EDB33BCE-0266-4A77-B904-27216099E717}'
  26. Global Const $GDIP_EPGQUALITY = '{1D5BE4B5-FA4A-452D-9CDD-5DB35105E7EB}'
  27. Global Const $GDIP_EPGRENDERMETHOD = '{6D42C53A-229A-4825-8BB7-5C99E2B9A8B8}'
  28. Global Const $GDIP_EPGSAVEFLAG = '{292266FC-AC40-47BF-8CFC-A85B89A655DE}'
  29. Global Const $GDIP_EPGSCANMETHOD = '{3A4E2661-3109-4E56-8536-42C156E7DCFA}'
  30. Global Const $GDIP_EPGTRANSFORMATION = '{8D0EB2D1-A58E-4EA8-AA14-108074B7B6F9}'
  31. Global Const $GDIP_EPGVERSION = '{24D18C76-814A-41A4-BF53-1C219CCCF797}'
  32. ; Encoder Parameter Types
  33. Global Const $GDIP_EPTBYTE = 1 ; 8 bit unsigned integer
  34. Global Const $GDIP_EPTASCII = 2 ; Null terminated character string
  35. Global Const $GDIP_EPTSHORT = 3 ; 16 bit unsigned integer
  36. Global Const $GDIP_EPTLONG = 4 ; 32 bit unsigned integer
  37. Global Const $GDIP_EPTRATIONAL = 5 ; Two longs (numerator, denomintor)
  38. Global Const $GDIP_EPTLONGRANGE = 6 ; Two longs (low, high)
  39. Global Const $GDIP_EPTUNDEFINED = 7 ; Array of bytes of any type
  40. Global Const $GDIP_EPTRATIONALRANGE = 8 ; Two ratationals (low, high)
  41. ; GDI Error Codes
  42. Global Const $GDIP_ERROK = 0 ; Method call was successful
  43. Global Const $GDIP_ERRGENERICERROR = 1 ; Generic method call error
  44. Global Const $GDIP_ERRINVALIDPARAMETER = 2 ; One of the arguments passed to the method was not valid
  45. Global Const $GDIP_ERROUTOFMEMORY = 3 ; The operating system is out of memory
  46. Global Const $GDIP_ERROBJECTBUSY = 4 ; One of the arguments in the call is already in use
  47. Global Const $GDIP_ERRINSUFFICIENTBUFFER = 5 ; A buffer is not large enough
  48. Global Const $GDIP_ERRNOTIMPLEMENTED = 6 ; The method is not implemented
  49. Global Const $GDIP_ERRWIN32ERROR = 7 ; The method generated a Microsoft Win32 error
  50. Global Const $GDIP_ERRWRONGSTATE = 8 ; The object is in an invalid state to satisfy the API call
  51. Global Const $GDIP_ERRABORTED = 9 ; The method was aborted
  52. Global Const $GDIP_ERRFILENOTFOUND = 10 ; The specified image file or metafile cannot be found
  53. Global Const $GDIP_ERRVALUEOVERFLOW = 11 ; The method produced a numeric overflow
  54. Global Const $GDIP_ERRACCESSDENIED = 12 ; A write operation is not allowed on the specified file
  55. Global Const $GDIP_ERRUNKNOWNIMAGEFORMAT = 13 ; The specified image file format is not known
  56. Global Const $GDIP_ERRFONTFAMILYNOTFOUND = 14 ; The specified font family cannot be found
  57. Global Const $GDIP_ERRFONTSTYLENOTFOUND = 15 ; The specified style is not available for the specified font
  58. Global Const $GDIP_ERRNOTTRUETYPEFONT = 16 ; The font retrieved is not a TrueType font
  59. Global Const $GDIP_ERRUNSUPPORTEDGDIVERSION = 17 ; The installed GDI+ version is incompatible
  60. Global Const $GDIP_ERRGDIPLUSNOTINITIALIZED = 18 ; The GDI+ API is not in an initialized state
  61. Global Const $GDIP_ERRPROPERTYNOTFOUND = 19 ; The specified property does not exist in the image
  62. Global Const $GDIP_ERRPROPERTYNOTSUPPORTED = 20 ; The specified property is not supported
  63. ; Encoder Value Types
  64. Global Const $GDIP_EVTCOMPRESSIONLZW = 2 ; TIFF: LZW compression
  65. Global Const $GDIP_EVTCOMPRESSIONCCITT3 = 3 ; TIFF: CCITT3 compression
  66. Global Const $GDIP_EVTCOMPRESSIONCCITT4 = 4 ; TIFF: CCITT4 compression
  67. Global Const $GDIP_EVTCOMPRESSIONRLE = 5 ; TIFF: RLE compression
  68. Global Const $GDIP_EVTCOMPRESSIONNONE = 6 ; TIFF: No compression
  69. Global Const $GDIP_EVTTRANSFORMROTATE90 = 13 ; JPEG: Lossless 90 degree clockwise rotation
  70. Global Const $GDIP_EVTTRANSFORMROTATE180 = 14 ; JPEG: Lossless 180 degree clockwise rotation
  71. Global Const $GDIP_EVTTRANSFORMROTATE270 = 15 ; JPEG: Lossless 270 degree clockwise rotation
  72. Global Const $GDIP_EVTTRANSFORMFLIPHORIZONTAL = 16 ; JPEG: Lossless horizontal flip
  73. Global Const $GDIP_EVTTRANSFORMFLIPVERTICAL = 17 ; JPEG: Lossless vertical flip
  74. Global Const $GDIP_EVTMULTIFRAME = 18 ; Multiple frame encoding
  75. Global Const $GDIP_EVTLASTFRAME = 19 ; Last frame of a multiple frame image
  76. Global Const $GDIP_EVTFLUSH = 20 ; The encoder object is to be closed
  77. Global Const $GDIP_EVTFRAMEDIMENSIONPAGE = 23 ; TIFF: Page frame dimension
  78. ; Image Codec Flags constants
  79. Global Const $GDIP_ICFENCODER = 0x00000001 ; The codec supports encoding (saving)
  80. Global Const $GDIP_ICFDECODER = 0x00000002 ; The codec supports decoding (reading)
  81. Global Const $GDIP_ICFSUPPORTBITMAP = 0x00000004 ; The codec supports raster images (bitmaps)
  82. Global Const $GDIP_ICFSUPPORTVECTOR = 0x00000008 ; The codec supports vector images (metafiles)
  83. Global Const $GDIP_ICFSEEKABLEENCODE = 0x00000010 ; The encoder requires a seekable output stream
  84. Global Const $GDIP_ICFBLOCKINGDECODE = 0x00000020 ; The decoder has blocking behavior during the decoding process
  85. Global Const $GDIP_ICFBUILTIN = 0x00010000 ; The codec is built in to GDI+
  86. Global Const $GDIP_ICFSYSTEM = 0x00020000 ; Not used in GDI+ version 1.0
  87. Global Const $GDIP_ICFUSER = 0x00040000 ; Not used in GDI+ version 1.0
  88. ; Image Lock Mode constants
  89. Global Const $GDIP_ILMREAD = 0x0001 ; A portion of the image is locked for reading
  90. Global Const $GDIP_ILMWRITE = 0x0002 ; A portion of the image is locked for writing
  91. Global Const $GDIP_ILMUSERINPUTBUF = 0x0004 ; The buffer is allocated by the user
  92. ; LineCap constants
  93. Global Const $GDIP_LINECAPFLAT = 0x00 ; Specifies a flat cap
  94. Global Const $GDIP_LINECAPSQUARE = 0x01 ; Specifies a square cap
  95. Global Const $GDIP_LINECAPROUND = 0x02 ; Specifies a circular cap
  96. Global Const $GDIP_LINECAPTRIANGLE = 0x03 ; Specifies a triangular cap
  97. Global Const $GDIP_LINECAPNOANCHOR = 0x10 ; Specifies that the line ends are not anchored
  98. Global Const $GDIP_LINECAPSQUAREANCHOR = 0x11 ; Specifies that the line ends are anchored with a square
  99. Global Const $GDIP_LINECAPROUNDANCHOR = 0x12 ; Specifies that the line ends are anchored with a circle
  100. Global Const $GDIP_LINECAPDIAMONDANCHOR = 0x13 ; Specifies that the line ends are anchored with a diamond
  101. Global Const $GDIP_LINECAPARROWANCHOR = 0x14 ; Specifies that the line ends are anchored with arrowheads
  102. Global Const $GDIP_LINECAPCUSTOM = 0xFF ; Specifies that the line ends are made from a CustomLineCap
  103. ; Pixel Format constants
  104. Global Const $GDIP_PXF01INDEXED = 0x00030101 ; 1 bpp, indexed
  105. Global Const $GDIP_PXF04INDEXED = 0x00030402 ; 4 bpp, indexed
  106. Global Const $GDIP_PXF08INDEXED = 0x00030803 ; 8 bpp, indexed
  107. Global Const $GDIP_PXF16GRAYSCALE = 0x00101004 ; 16 bpp, grayscale
  108. Global Const $GDIP_PXF16RGB555 = 0x00021005 ; 16 bpp; 5 bits for each RGB
  109. Global Const $GDIP_PXF16RGB565 = 0x00021006 ; 16 bpp; 5 bits red, 6 bits green, and 5 bits blue
  110. Global Const $GDIP_PXF16ARGB1555 = 0x00061007 ; 16 bpp; 1 bit for alpha and 5 bits for each RGB component
  111. Global Const $GDIP_PXF24RGB = 0x00021808 ; 24 bpp; 8 bits for each RGB
  112. Global Const $GDIP_PXF32RGB = 0x00022009 ; 32 bpp; 8 bits for each RGB. No alpha.
  113. Global Const $GDIP_PXF32ARGB = 0x0026200A ; 32 bpp; 8 bits for each RGB and alpha
  114. Global Const $GDIP_PXF32PARGB = 0x000E200B ; 32 bpp; 8 bits for each RGB and alpha, pre-mulitiplied
  115. Global Const $GDIP_PXF48RGB = 0x0010300C ; 48 bpp; 16 bits for each RGB
  116. Global Const $GDIP_PXF64ARGB = 0x0034400D ; 64 bpp; 16 bits for each RGB and alpha
  117. Global Const $GDIP_PXF64PARGB = 0x001A400E ; 64 bpp; 16 bits for each RGB and alpha, pre-multiplied
  118. ; ImageFormat constants (Globally Unique Identifier (GUID))
  119. Global Const $GDIP_IMAGEFORMAT_UNDEFINED = "{B96B3CA9-0728-11D3-9D7B-0000F81EF32E}" ; Windows GDI+ is unable to determine the format.
  120. Global Const $GDIP_IMAGEFORMAT_MEMORYBMP = "{B96B3CAA-0728-11D3-9D7B-0000F81EF32E}" ; Image was constructed from a memory bitmap.
  121. Global Const $GDIP_IMAGEFORMAT_BMP = "{B96B3CAB-0728-11D3-9D7B-0000F81EF32E}" ; Microsoft Windows Bitmap (BMP) format.
  122. Global Const $GDIP_IMAGEFORMAT_EMF = "{B96B3CAC-0728-11D3-9D7B-0000F81EF32E}" ; Enhanced Metafile (EMF) format.
  123. Global Const $GDIP_IMAGEFORMAT_WMF = "{B96B3CAD-0728-11D3-9D7B-0000F81EF32E}" ; Windows Metafile Format (WMF) format.
  124. Global Const $GDIP_IMAGEFORMAT_JPEG = "{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}" ; Joint Photographic Experts Group (JPEG) format.
  125. Global Const $GDIP_IMAGEFORMAT_PNG = "{B96B3CAF-0728-11D3-9D7B-0000F81EF32E}" ; Portable Network Graphics (PNG) format.
  126. Global Const $GDIP_IMAGEFORMAT_GIF = "{B96B3CB0-0728-11D3-9D7B-0000F81EF32E}" ; Graphics Interchange Format (GIF) format.
  127. Global Const $GDIP_IMAGEFORMAT_TIFF = "{B96B3CB1-0728-11D3-9D7B-0000F81EF32E}" ; Tagged Image File Format (TIFF) format.
  128. Global Const $GDIP_IMAGEFORMAT_EXIF = "{B96B3CB2-0728-11D3-9D7B-0000F81EF32E}" ; Exchangeable Image File (EXIF) format.
  129. Global Const $GDIP_IMAGEFORMAT_ICON = "{B96B3CB5-0728-11D3-9D7B-0000F81EF32E}" ; Microsoft Windows Icon Image (ICO)format.
  130. ; ImageType constants
  131. Global Const $GDIP_IMAGETYPE_UNKNOWN = 0
  132. Global Const $GDIP_IMAGETYPE_BITMAP = 1
  133. Global Const $GDIP_IMAGETYPE_METAFILE = 2
  134. ; ImageFlags flags constants
  135. Global Const $GDIP_IMAGEFLAGS_NONE = 0x0 ; no format information.
  136. Global Const $GDIP_IMAGEFLAGS_SCALABLE = 0x0001 ; image can be scaled.
  137. Global Const $GDIP_IMAGEFLAGS_HASALPHA = 0x0002 ; pixel data contains alpha values.
  138. Global Const $GDIP_IMAGEFLAGS_HASTRANSLUCENT = 0x0004 ; pixel data has alpha values other than 0 (transparent) and 255 (opaque).
  139. Global Const $GDIP_IMAGEFLAGS_PARTIALLYSCALABLE = 0x0008 ; pixel data is partially scalable with some limitations.
  140. Global Const $GDIP_IMAGEFLAGS_COLORSPACE_RGB = 0x0010 ; image is stored using an RGB color space.
  141. Global Const $GDIP_IMAGEFLAGS_COLORSPACE_CMYK = 0x0020 ; image is stored using a CMYK color space.
  142. Global Const $GDIP_IMAGEFLAGS_COLORSPACE_GRAY = 0x0040 ; image is a grayscale image.
  143. Global Const $GDIP_IMAGEFLAGS_COLORSPACE_YCBCR = 0x0080 ; image is stored using a YCBCR color space.
  144. Global Const $GDIP_IMAGEFLAGS_COLORSPACE_YCCK = 0x0100 ; image is stored using a YCCK color space.
  145. Global Const $GDIP_IMAGEFLAGS_HASREALDPI = 0x1000 ; dots per inch information is stored in the image.
  146. Global Const $GDIP_IMAGEFLAGS_HASREALPIXELSIZE = 0x2000 ; pixel size is stored in the image.
  147. Global Const $GDIP_IMAGEFLAGS_READONLY = 0x00010000 ; pixel data is read-only.
  148. Global Const $GDIP_IMAGEFLAGS_CACHING = 0x00020000 ; pixel data can be cached for faster access.
  149. ; Graphic SmoothingMode constants
  150. Global Const $GDIP_SMOOTHINGMODE_INVALID = -1 ; Reserved.
  151. Global Const $GDIP_SMOOTHINGMODE_DEFAULT = 0 ; Specifies that smoothing is not applied.
  152. Global Const $GDIP_SMOOTHINGMODE_HIGHSPEED = 1 ; Specifies that smoothing is not applied.
  153. Global Const $GDIP_SMOOTHINGMODE_HIGHQUALITY = 2 ; Specifies that smoothing is applied using an 8 X 4 box filter.
  154. Global Const $GDIP_SMOOTHINGMODE_NONE = 3 ; Specifies that smoothing is not applied.
  155. Global Const $GDIP_SMOOTHINGMODE_ANTIALIAS8X4 = 4 ; Specifies that smoothing is applied using an 8 X 4 box filter.
  156. Global Const $GDIP_SMOOTHINGMODE_ANTIALIAS = $GDIP_SMOOTHINGMODE_ANTIALIAS8X4 ; Specifies that smoothing is applied using an 8 X 4 box filter.
  157. Global Const $GDIP_SMOOTHINGMODE_ANTIALIAS8X8 = 5 ; Specifies that smoothing is applied using an 8 X 8 box filter.
  158. ; Colors luminance
  159. Global Const $GDIP_RLUM = 0.3086
  160. Global Const $GDIP_GLUM = 0.6094
  161. Global Const $GDIP_BLUM = 0.0820
  162. ; Interpolation Mode constants
  163. Global Const $GDIP_INTERPOLATIONMODE_INVALID = -1 ; Reserved (used internally)
  164. Global Const $GDIP_INTERPOLATIONMODE_DEFAULT = 0 ; Specifies the default interpolation mode
  165. Global Const $GDIP_INTERPOLATIONMODE_LOWQUALITY = 1 ; Specifies a low-quality mode
  166. Global Const $GDIP_INTERPOLATIONMODE_HIGHQUALITY = 2 ; Specifies a high-quality mode
  167. Global Const $GDIP_INTERPOLATIONMODE_BILINEAR = 3 ; Specifies bilinear interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 50 percent of its original size.
  168. Global Const $GDIP_INTERPOLATIONMODE_BICUBIC = 4 ; Specifies bicubic interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 25 percent of its original size
  169. Global Const $GDIP_INTERPOLATIONMODE_NEARESTNEIGHBOR = 5 ; Specifies nearest-neighbor interpolation
  170. Global Const $GDIP_INTERPOLATIONMODE_HIGHQUALITYBILINEAR = 6 ; Specifies high-quality, bilinear interpolation. Prefiltering is performed to ensure high-quality shrinking.
  171. Global Const $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC = 7 ; Specifies high-quality, bicubic interpolation. Prefiltering is performed to ensure high-quality shrinking. This mode produces the highest quality transformed images.
  172. ; TextRenderingHint constants
  173. Global Const $GDIP_TEXTRENDERINGHINT_SYSTEMDEFAULT = 0 ; Specifies that a character is drawn using the currently selected system font smoothing mode (also called a rendering hint).
  174. Global Const $GDIP_TEXTRENDERINGHINT_SINGLEBITPERPIXELGRIDFIT = 1 ; Specifies that a character is drawn using its glyph bitmap and hinting to improve character appearance on stems and curvature.
  175. Global Const $GDIP_TEXTRENDERINGHINT_SINGLEBITPERPIXEL = 2 ; Specifies that a character is drawn using its glyph bitmap and no hinting. This results in better performance at the expense of quality.
  176. Global Const $GDIP_TEXTRENDERINGHINT_ANTIALIASGRIDFIT = 3 ; Specifies 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.
  177. Global Const $GDIP_TEXTRENDERINGHINT_ANTIALIAS = 4 ; Specifies that a character is drawn using its antialiased glyph bitmap and no hinting. Stem width differences may be noticeable because hinting is turned off.
  178. Global Const $GDIP_TEXTRENDERINGHINT_CLEARTYPEGRIDFIT = 5 ; Specifies that a character is drawn using its glyph ClearType bitmap and hinting. This type of text rendering cannot be used along with CompositingModeSourceCopy.
  179. ; PixelOffsetMode constants
  180. Global Const $GDIP_PIXELOFFSETMODE_INVALID = -1 ; Used internally.
  181. Global Const $GDIP_PIXELOFFSETMODE_DEFAULT = 0 ; Equivalent to $GDIP_PIXELOFFSETMODE_NONE
  182. Global Const $GDIP_PIXELOFFSETMODE_HIGHSPEED = 1 ; Equivalent to $GDIP_PIXELOFFSETMODE_NONE
  183. Global Const $GDIP_PIXELOFFSETMODE_HIGHQUALITY = 2 ; Equivalent to $GDIP_PIXELOFFSETMODE_HALF
  184. Global Const $GDIP_PIXELOFFSETMODE_NONE = 3 ; Indicates that pixel centers have integer coordinates.
  185. Global Const $GDIP_PIXELOFFSETMODE_HALF = 4 ; Indicates that pixel centers have coordinates that are half way between integer values.
  186. ; LineJoin constants
  187. Global Const $GDIP_PENSETLINEJOIN_MITER = 0 ; Specifies a mitered join. This produces a sharp corner or a clipped corner, depending on whether the length of the miter exceeds the miter limit.
  188. Global Const $GDIP_PENSETLINEJOIN_BEVEL = 1 ; Specifies a beveled join. This produces a diagonal corner.
  189. Global Const $GDIP_PENSETLINEJOIN_ROUND = 2 ; Specifies a circular join. This produces a smooth, circular arc between the lines.
  190. Global Const $GDIP_PENSETLINEJOIN_MITERCLIPPED = 3 ; Specifies a mitered join. This produces a sharp corner or a beveled corner, depending on whether the length of the miter exceeds the miter limit.
  191. ; Fill mode constants
  192. Global Const $GDIP_FillModeAlternate = 0 ;Specifies that areas are filled according to the even-odd parity rule. According to this rule, you can determine
  193. ;whether a test point is inside or outside a closed curve as follows: Draw a line from the test point to a point
  194. ;that is distant from the curve. If that line crosses the curve an odd number of times, the test point is inside
  195. ;the curve; otherwise, the test point is outside the curve.
  196. Global Const $GDIP_FillModeWinding = 1 ;Specifies that areas are filled according to the nonzero winding rule. According to this rule, you can determine
  197. ;whether a test point is inside or outside a closed curve as follows: Draw a line from a test point to a point that
  198. ;is distant from the curve. Count the number of times the curve crosses the test line from left to right, and count
  199. ;the number of times the curve crosses the test line from right to left. If those two numbers are the same, the test
  200. ;point is outside the curve; otherwise, the test point is inside the curve.
  201. ; Quality constants
  202. Global Const $GDIP_QUALITYMODEINVALID = -1
  203. Global Const $GDIP_QUALITYMODEDEFAULT = 0
  204. Global Const $GDIP_QUALITYMODELOW = 1
  205. Global Const $GDIP_QUALITYMODEHIGH = 2
  206. ; Alpha Compositing mode constants
  207. Global Const $GDIP_COMPOSITINGMODESOURCEOVER = 0 ; Specifies 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
  208. Global Const $GDIP_COMPOSITINGMODESOURCECOPY = 1 ; Specifies that when a color is rendered, it overwrites the background color. This mode cannot be used along with $TextRenderingHintClearTypeGridFit
  209. ; Alpha Compositing quality constants
  210. Global Const $GDIP_COMPOSITINGQUALITYINVALID = $GDIP_QUALITYMODEINVALID ; Invalid quality
  211. Global Const $GDIP_COMPOSITINGQUALITYDEFAULT = $GDIP_QUALITYMODEDEFAULT ; Gamma correction is not applied
  212. Global Const $GDIP_COMPOSITINGQUALITYHIGHSPEED = $GDIP_QUALITYMODELOW ; Gamma correction is not applied. High speed, low quality
  213. Global Const $GDIP_COMPOSITINGQUALITYHIGHQUALITY = $GDIP_QUALITYMODEHIGH ; Gamma correction is applied. Composition of high quality and speed.
  214. Global Const $GDIP_COMPOSITINGQUALITYGAMMACORRECTED = 3 ; Gamma correction is applied
  215. Global Const $GDIP_COMPOSITINGQUALITYASSUMELINEAR = 4 ; Gamma correction is not applied. Linear values are used
  216. ; Various hatch styles
  217. Global Const $GDIP_HATCHSTYLE_HORIZONTAL = 0
  218. Global Const $GDIP_HATCHSTYLE_VERTICAL = 1
  219. Global Const $GDIP_HATCHSTYLE_FORWARDDIAGONAL = 2
  220. Global Const $GDIP_HATCHSTYLE_BACKWARDDIAGONAL = 3
  221. Global Const $GDIP_HATCHSTYLE_CROSS = 4
  222. Global Const $GDIP_HATCHSTYLE_DIAGONALCROSS = 5
  223. Global Const $GDIP_HATCHSTYLE_05PERCENT = 6
  224. Global Const $GDIP_HATCHSTYLE_10PERCENT = 7
  225. Global Const $GDIP_HATCHSTYLE_20PERCENT = 8
  226. Global Const $GDIP_HATCHSTYLE_25PERCENT = 9
  227. Global Const $GDIP_HATCHSTYLE_30PERCENT = 10
  228. Global Const $GDIP_HATCHSTYLE_40PERCENT = 11
  229. Global Const $GDIP_HATCHSTYLE_50PERCENT = 12
  230. Global Const $GDIP_HATCHSTYLE_60PERCENT = 13
  231. Global Const $GDIP_HATCHSTYLE_70PERCENT = 14
  232. Global Const $GDIP_HATCHSTYLE_75PERCENT = 15
  233. Global Const $GDIP_HATCHSTYLE_80PERCENT = 16
  234. Global Const $GDIP_HATCHSTYLE_90PERCENT = 17
  235. Global Const $GDIP_HATCHSTYLE_LIGHTDOWNWARDDIAGONAL = 18
  236. Global Const $GDIP_HATCHSTYLE_LIGHTUPWARDDIAGONAL = 19
  237. Global Const $GDIP_HATCHSTYLE_DARKDOWNWARDDIAGONAL = 20
  238. Global Const $GDIP_HATCHSTYLE_DARKUPWARDDIAGONAL = 21
  239. Global Const $GDIP_HATCHSTYLE_WIDEDOWNWARDDIAGONAL = 22
  240. Global Const $GDIP_HATCHSTYLE_WIDEUPWARDDIAGONAL = 23
  241. Global Const $GDIP_HATCHSTYLE_LIGHTVERTICAL = 24
  242. Global Const $GDIP_HATCHSTYLE_LIGHTHORIZONTAL = 25
  243. Global Const $GDIP_HATCHSTYLE_NARROWVERTICAL = 26
  244. Global Const $GDIP_HATCHSTYLE_NARROWHORIZONTAL = 27
  245. Global Const $GDIP_HATCHSTYLE_DARKVERTICAL = 28
  246. Global Const $GDIP_HATCHSTYLE_DARKHORIZONTAL = 29
  247. Global Const $GDIP_HATCHSTYLE_DASHEDDOWNWARDDIAGONAL = 30
  248. Global Const $GDIP_HATCHSTYLE_DASHEDUPWARDDIAGONAL = 31
  249. Global Const $GDIP_HATCHSTYLE_DASHEDHORIZONTAL = 32
  250. Global Const $GDIP_HATCHSTYLE_DASHEDVERTICAL = 33
  251. Global Const $GDIP_HATCHSTYLE_SMALLCONFETTI = 34
  252. Global Const $GDIP_HATCHSTYLE_LARGECONFETTI = 35
  253. Global Const $GDIP_HATCHSTYLE_ZIGZAG = 36
  254. Global Const $GDIP_HATCHSTYLE_WAVE = 37
  255. Global Const $GDIP_HATCHSTYLE_DIAGONALBRICK = 38
  256. Global Const $GDIP_HATCHSTYLE_HORIZONTALBRICK = 39
  257. Global Const $GDIP_HATCHSTYLE_WEAVE = 40
  258. Global Const $GDIP_HATCHSTYLE_PLAID = 41
  259. Global Const $GDIP_HATCHSTYLE_DIVOT = 42
  260. Global Const $GDIP_HATCHSTYLE_DOTTEDGRID = 43
  261. Global Const $GDIP_HATCHSTYLE_DOTTEDDIAMOND = 44
  262. Global Const $GDIP_HATCHSTYLE_SHINGLE = 45
  263. Global Const $GDIP_HATCHSTYLE_TRELLIS = 46
  264. Global Const $GDIP_HATCHSTYLE_SPHERE = 47
  265. Global Const $GDIP_HATCHSTYLE_SMALLGRID = 48
  266. Global Const $GDIP_HATCHSTYLE_SMALLCHECKERBOARD = 49
  267. Global Const $GDIP_HATCHSTYLE_LARGECHECKERBOARD = 50
  268. Global Const $GDIP_HATCHSTYLE_OUTLINEDDIAMOND = 51
  269. Global Const $GDIP_HATCHSTYLE_SOLIDDIAMOND = 52
  270. Global Const $GDIP_HATCHSTYLE_TOTAL = 53
  271. Global Const $GDIP_HATCHSTYLE_LARGEGRID = $GDIP_HATCHSTYLE_CROSS
  272. Global Const $GDIP_HATCHSTYLE_MIN = $GDIP_HATCHSTYLE_HORIZONTAL
  273. Global Const $GDIP_HATCHSTYLE_MAX = $GDIP_HATCHSTYLE_TOTAL - 1
  274. ; GDIPlus V1.1 constants
  275. ;GDI+ effect GUIDs
  276. Global Const $GDIP_BlurEffectGuid = '{633C80A4-1843-482b-9EF2-BE2834C5FDD4}'
  277. Global Const $GDIP_SharpenEffectGuid = '{63CBF3EE-C526-402c-8F71-62C540BF5142}'
  278. Global Const $GDIP_ColorMatrixEffectGuid = '{718F2615-7933-40e3-A511-5F68FE14DD74}'
  279. Global Const $GDIP_ColorLUTEffectGuid = '{A7CE72A9-0F7F-40d7-B3CC-D0C02D5C3212}'
  280. Global Const $GDIP_BrightnessContrastEffectGuid = '{D3A1DBE1-8EC4-4c17-9F4C-EA97AD1C343D}'
  281. Global Const $GDIP_HueSaturationLightnessEffectGuid = '{8B2DD6C3-EB07-4d87-A5F0-7108E26A9C5F}'
  282. Global Const $GDIP_LevelsEffectGuid = '{99C354EC-2A31-4f3a-8C34-17A803B33A25}'
  283. Global Const $GDIP_TintEffectGuid = '{1077AF00-2848-4441-9489-44AD4C2D7A2C}'
  284. Global Const $GDIP_ColorBalanceEffectGuid = '{537E597D-251E-48da-9664-29CA496B70F8}'
  285. Global Const $GDIP_RedEyeCorrectionEffectGuid = '{74D29D05-69A4-4266-9549-3CC52836B632}'
  286. Global Const $GDIP_ColorCurveEffectGuid = '{DD6A0022-58E4-4a67-9D9B-D48EB881A53D}'
  287. Global Const $GDIP_AdjustExposure = 0 ;[-255..255]
  288. Global Const $GDIP_AdjustDensity = 1 ;[-255..255]
  289. Global Const $GDIP_AdjustContrast = 2 ;[-100..100]
  290. Global Const $GDIP_AdjustHighlight = 3 ;[-100..100]
  291. Global Const $GDIP_AdjustShadow = 4 ;[-100..100]
  292. Global Const $GDIP_AdjustMidtone = 5 ;[-100..100]
  293. Global Const $GDIP_AdjustWhiteSaturation = 6 ;[0..255]
  294. Global Const $GDIP_AdjustBlackSaturation = 7 ;[0..255]
  295. Global Const $GDIP_CurveChannelAll = 0
  296. Global Const $GDIP_CurveChannelRed = 1
  297. Global Const $GDIP_CurveChannelGreen = 2
  298. Global Const $GDIP_CurveChannelBlue = 3
  299. ;Color format conversion parameters
  300. Global Const $GDIP_PaletteTypeCustom = 0 ;Arbitrary custom palette provided by caller.
  301. Global Const $GDIP_PaletteTypeOptimal = 1 ;Optimal palette generated using a median-cut algorithm.
  302. Global Const $GDIP_PaletteTypeFixedBW = 2 ;Black and white palette.
  303. ;Symmetric halftone palettes. Each of these halftone palettes will be a superset of the system palette. E.g. Halftone8 will have it's 8-color on-off primaries and the 16 system colors added. With duplicates removed, that leaves 16 colors.
  304. Global Const $GDIP_PaletteTypeFixedHalftone8 = 3 ;8-color, on-off primaries
  305. Global Const $GDIP_PaletteTypeFixedHalftone27 = 4 ;3 intensity levels of each color
  306. Global Const $GDIP_PaletteTypeFixedHalftone64 = 5 ;4 intensity levels of each color
  307. Global Const $GDIP_PaletteTypeFixedHalftone125 = 6 ;5 intensity levels of each color
  308. Global Const $GDIP_PaletteTypeFixedHalftone216 = 7 ;6 intensity levels of each color
  309. ;Assymetric halftone palettes. These are somewhat less useful than the symmetric ones, but are included for completeness. These do not include all of the system colors.
  310. Global Const $GDIP_PaletteTypeFixedHalftone252 = 8 ;6-red, 7-green, 6-blue intensities
  311. Global Const $GDIP_PaletteTypeFixedHalftone256 = 9 ;8-red, 8-green, 4-blue intensities
  312. ;PaletteFlags enumeration
  313. Global Const $GDIP_PaletteFlagsHasAlpha = 0x0001
  314. Global Const $GDIP_PaletteFlagsGrayScale = 0x0002
  315. Global Const $GDIP_PaletteFlagsHalftone = 0x0004
  316. ;DitherType
  317. Global Const $GDIP_DitherTypeNone = 0
  318. Global Const $GDIP_DitherTypeSolid = 1 ;Solid color - picks the nearest matching color with no attempt to halftone or dither. May be used on an arbitrary palette.
  319. ;Ordered dithers and spiral dithers must be used with a fixed palette. NOTE: DitherOrdered4x4 is unique in that it may apply to 16bpp conversions also.
  320. Global Const $GDIP_DitherTypeOrdered4x4 = 2
  321. Global Const $GDIP_DitherTypeOrdered8x8 = 3
  322. Global Const $GDIP_DitherTypeOrdered16x16 = 4
  323. Global Const $GDIP_DitherTypeOrdered91x91 = 5
  324. Global Const $GDIP_DitherTypeSpiral4x4 = 6
  325. Global Const $GDIP_DitherTypeSpiral8x8 = 7
  326. Global Const $GDIP_DitherTypeDualSpiral4x4 = 8
  327. Global Const $GDIP_DitherTypeDualSpiral8x8 = 9
  328. ;Error diffusion. May be used with any palette.
  329. Global Const $GDIP_DitherTypeErrorDiffusion = 10
  330. Global Const $GDIP_DitherTypeMax = 10
  331. ;HistogramFormat
  332. Global Const $GDIP_HistogramFormatARGB = 0
  333. Global Const $GDIP_HistogramFormatPARGB = 1
  334. Global Const $GDIP_HistogramFormatRGB = 2
  335. Global Const $GDIP_HistogramFormatGray = 3
  336. Global Const $GDIP_HistogramFormatB = 4
  337. Global Const $GDIP_HistogramFormatG = 5
  338. Global Const $GDIP_HistogramFormatR = 6
  339. Global Const $GDIP_HistogramFormatA = 7
  340. ;TextRenderingHint constants
  341. Global Const $GDIP_TextRenderingHintSystemDefault = 0
  342. Global Const $GDIP_TextRenderingHintSingleBitPerPixelGridFit = 1
  343. Global Const $GDIP_TextRenderingHintSingleBitPerPixel = 2
  344. Global Const $GDIP_TextRenderingHintAntialiasGridFit = 3
  345. Global Const $GDIP_TextRenderingHintAntialias = 4
  346. Global Const $GDIP_TextRenderingHintClearTypeGridFit = 5
  347. ;RotateFlipType constants
  348. Global Const $GDIP_RotateNoneFlipNone = 0
  349. Global Const $GDIP_Rotate90FlipNone = 1
  350. Global Const $GDIP_Rotate180FlipNone = 2
  351. Global Const $GDIP_Rotate270FlipNone = 3
  352. Global Const $GDIP_RotateNoneFlipX = 4
  353. Global Const $GDIP_Rotate90FlipX = 5
  354. Global Const $GDIP_Rotate180FlipX = 6
  355. Global Const $GDIP_Rotate270FlipX = 7
  356. Global Const $GDIP_RotateNoneFlipY = $GDIP_Rotate180FlipX
  357. Global Const $GDIP_Rotate90FlipY = $GDIP_Rotate270FlipX
  358. Global Const $GDIP_Rotate180FlipY = $GDIP_RotateNoneFlipX
  359. Global Const $GDIP_Rotate270FlipY = $GDIP_Rotate90FlipX
  360. Global Const $GDIP_RotateNoneFlipXY = $GDIP_Rotate180FlipNone
  361. Global Const $GDIP_Rotate90FlipXY = $GDIP_Rotate270FlipNone
  362. Global Const $GDIP_Rotate270FlipXY = $GDIP_Rotate90FlipNone
  363. ; Multi-frame dimensions (Globally Unique Identifier (GUID))
  364. Global Const $GDIP_FRAMEDIMENSION_TIME = "{6AEDBD6D-3FB5-418A-83A6-7F45229DC872}"
  365. Global Const $GDIP_FRAMEDIMENSION_RESOLUTION = "{84236F7B-3BD3-428F-8DAB-4EA1439CA315}"
  366. Global Const $GDIP_FRAMEDIMENSION_PAGE = "{7462DC86-6180-4C7E-8E3F-EE7333A7A483}"
  367. ;ImageAttributesSetThreshold constants
  368. Global Const $GDIP_COLORADJUSTTYPE_DEFAULT = 0
  369. Global Const $GDIP_COLORADJUSTTYPE_BITMAP = 1
  370. Global Const $GDIP_COLORADJUSTTYPE_BRUSH = 2
  371. Global Const $GDIP_COLORADJUSTTYPE_PEN = 3
  372. Global Const $GDIP_COLORADJUSTTYPE_TEXT = 4
  373. Global Const $GDIP_COLORADJUSTTYPE_COUNT = 5
  374. Global Const $GDIP_COLORADJUSTTYPE_ANY = 6
  375. ;===============================================================================================================================