Changeset 241 for branch/egtra-gdiplus/GdiPlusTypes.ab
- Timestamp:
- May 9, 2007, 10:26:36 PM (18 years ago)
- Location:
- branch/egtra-gdiplus
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branch/egtra-gdiplus/GdiPlusTypes.ab
r13 r241 1 ' GdiPlusTypes. sbp1 ' GdiPlusTypes.ab 2 2 3 3 #ifndef __GDIPLUSTYPES_AB__ 4 4 #define __GDIPLUSTYPES_AB__ 5 5 6 #include <Classes/System/Math.ab> 6 #require <Classes/System/Math.ab> 7 #require <Classes/System/Drawing/Imaging/misc.ab> 8 9 #require <Classes/System/Drawing/SizeF.ab> 10 #require <Classes/System/Drawing/Size.ab> 11 #require <Classes/System/Drawing/PointF.ab> 12 #require <Classes/System/Drawing/Point.ab> 13 #require <Classes/System/Drawing/RectangleF.ab> 14 #require <Classes/System/Drawing/Rectangle.ab> 15 #require <Classes/System/Drawing/CharacterRange.ab> 16 17 Namespace Gdiplus 7 18 8 19 TypeDef ImageAbort = *Function(p As VoidPtr) As BOOL … … 10 21 TypeDef GetThumbnailImageAbort = ImageAbort 11 22 12 TypeDef EnumerateMetafileProc = *Function(recordType As EmfPlusRecordType, flags As DWord, dataSize As DWord, data As BytePtr, callbackData As VoidPtr) As BOOL23 TypeDef EnumerateMetafileProc = *Function(recordType As System.Drawing.Imaging.EmfPlusRecordType, flags As DWord, dataSize As DWord, data As BytePtr, callbackData As VoidPtr) As BOOL 13 24 14 25 'Const REAL_MAX = FLT_MAX … … 17 28 'Const REAL_EPSILON = 1.192092896e-07 'FLT_EPSILON 18 29 19 ConstEnum Status30 Enum Status 20 31 Ok = 0 21 32 GenericError = 1 … … 41 52 End Enum 42 53 43 #include <Classes/System/Drawing/SizeF.ab>44 #include <Classes/System/Drawing/Size.ab>45 #include <Classes/System/Drawing/PointF.ab>46 #include <Classes/System/Drawing/Point.ab>47 #include <Classes/System/Drawing/RectangleF.ab>48 #include <Classes/System/Drawing/Rectangle.ab>49 #include <Classes/System/Drawing/CharacterRange.ab>50 51 54 Class PathData 52 55 Public … … 77 80 Public 78 81 Count As Long 79 Points As * PointF82 Points As *System.Drawing.PointF 80 83 Types As *BYTE 81 84 End Class 82 85 86 ' -------- 87 88 TypeDef ARGB = DWord 89 TypeDef ARGB64 = QWord 90 91 Const ALPHA_SHIFT = 24 As DWord 92 Const RED_SHIFT = 16 As DWord 93 Const GREEN_SHIFT = 8 As DWord 94 Const BLUE_SHIFT = 0 As DWord 95 Const ALPHA_MASK = ((&hff As ARGB) << ALPHA_SHIFT) 96 97 Const GetPixelFormatSize(pixfmt) = ((((pixfmt As PixelFormat) >> 8) And &hff) As DWord) 98 99 Const IsIndexedPixelFormat(pixfmt) = ((((pixfmt As PixelFormat) And PixelFormat.Indexed) <> 0) As BOOL) 100 101 Const IsAlphaPixelFormat(pixfmt) = ((((pixfmt As PixelFormat) And PixelFormat.Alpha) <> 0) As BOOL) 102 103 Const IsExtendedPixelFormat(pixfmt) = ((((pixfmt As PixelFormat) And PixelFormat.Extended) <> 0) As BOOL) 104 105 Const IsCanonicalPixelFormat(pixfmt) = ((((pixfmt As PixelFormat) And PixelFormat.Canonical) <> 0) As BOOL) 106 107 Type Align(8) ColorPalette 108 Flags As DWord 109 Count As DWord 110 Entries[1] As ARGB 111 End Type 112 113 Type ColorMatrix 114 m[5][5] As Single 115 End Type 116 117 Type Align(8) EncoderParameter 118 Guid As GUID 119 NumberOfValues As DWord 120 EncoderType As DWord '元はTypeという名前 121 Value As VoidPtr 122 End Type 123 124 Type Align(8) EncoderParameters 125 Count As DWord 126 Parameter[1] As EncoderParameter 127 End Type 128 129 Const PropertyTagTypeByte = 1 130 Const PropertyTagTypeASCII = 2 131 Const PropertyTagTypeShort = 3 132 Const PropertyTagTypeLong = 4 133 Const PropertyTagTypeRational = 5 134 Const PropertyTagTypeUndefined = 7 135 Const PropertyTagTypeSLONG = 9 136 Const PropertyTagTypeSRational = 10 137 138 Const PropertyTagExifIFD = &h8769 139 Const PropertyTagGpsIFD = &h8825 140 141 Const PropertyTagNewSubfileType = &h00FE 142 Const PropertyTagSubfileType = &h00FF 143 Const PropertyTagImageWidth = &h0100 144 Const PropertyTagImageHeight = &h0101 145 Const PropertyTagBitsPerSample = &h0102 146 Const PropertyTagCompression = &h0103 147 Const PropertyTagPhotometricInterp = &h0106 148 Const PropertyTagThreshHolding = &h0107 149 Const PropertyTagCellWidth = &h0108 150 Const PropertyTagCellHeight = &h0109 151 Const PropertyTagFillOrder = &h010A 152 Const PropertyTagDocumentName = &h010D 153 Const PropertyTagImageDescription = &h010E 154 Const PropertyTagEquipMake = &h010F 155 Const PropertyTagEquipModel = &h0110 156 Const PropertyTagStripOffsets = &h0111 157 Const PropertyTagOrientation = &h0112 158 Const PropertyTagSamplesPerPixel = &h0115 159 Const PropertyTagRowsPerStrip = &h0116 160 Const PropertyTagStripBytesCount = &h0117 161 Const PropertyTagMinSampleValue = &h0118 162 Const PropertyTagMaxSampleValue = &h0119 163 Const PropertyTagXResolution = &h011A ' Image resolution in width direction 164 Const PropertyTagYResolution = &h011B ' Image resolution in height direction 165 Const PropertyTagPlanarConfig = &h011C ' Image data arrangement 166 Const PropertyTagPageName = &h011D 167 Const PropertyTagXPosition = &h011E 168 Const PropertyTagYPosition = &h011F 169 Const PropertyTagFreeOffset = &h0120 170 Const PropertyTagFreeByteCounts = &h0121 171 Const PropertyTagGrayResponseUnit = &h0122 172 Const PropertyTagGrayResponseCurve = &h0123 173 Const PropertyTagT4Option = &h0124 174 Const PropertyTagT6Option = &h0125 175 Const PropertyTagResolutionUnit = &h0128 ' Unit of X and Y resolution 176 Const PropertyTagPageNumber = &h0129 177 Const PropertyTagTransferFuncition = &h012D 178 Const PropertyTagSoftwareUsed = &h0131 179 Const PropertyTagDateTime = &h0132 180 Const PropertyTagArtist = &h013B 181 Const PropertyTagHostComputer = &h013C 182 Const PropertyTagPredictor = &h013D 183 Const PropertyTagWhitePoint = &h013E 184 Const PropertyTagPrimaryChromaticities = &h013F 185 Const PropertyTagColorMap = &h0140 186 Const PropertyTagHalftoneHints = &h0141 187 Const PropertyTagTileWidth = &h0142 188 Const PropertyTagTileLength = &h0143 189 Const PropertyTagTileOffset = &h0144 190 Const PropertyTagTileByteCounts = &h0145 191 Const PropertyTagInkSet = &h014C 192 Const PropertyTagInkNames = &h014D 193 Const PropertyTagNumberOfInks = &h014E 194 Const PropertyTagDotRange = &h0150 195 Const PropertyTagTargetPrinter = &h0151 196 Const PropertyTagExtraSamples = &h0152 197 Const PropertyTagSampleFormat = &h0153 198 Const PropertyTagSMinSampleValue = &h0154 199 Const PropertyTagSMaxSampleValue = &h0155 200 Const PropertyTagTransferRange = &h0156 201 202 Const PropertyTagJPEGProc = &h0200 203 Const PropertyTagJPEGInterFormat = &h0201 204 Const PropertyTagJPEGInterLength = &h0202 205 Const PropertyTagJPEGRestartInterval = &h0203 206 Const PropertyTagJPEGLosslessPredictors = &h0205 207 Const PropertyTagJPEGPointTransforms = &h0206 208 Const PropertyTagJPEGQTables = &h0207 209 Const PropertyTagJPEGDCTables = &h0208 210 Const PropertyTagJPEGACTables = &h0209 211 212 Const PropertyTagYCbCrCoefficients = &h0211 213 Const PropertyTagYCbCrSubsampling = &h0212 214 Const PropertyTagYCbCrPositioning = &h0213 215 Const PropertyTagREFBlackWhite = &h0214 216 217 Const PropertyTagICCProfile = &h8773 ' This TAG is defined by ICC 218 ' for embedded ICC in TIFF 219 Const PropertyTagGamma = &h0301 220 Const PropertyTagICCProfileDescriptor = &h0302 221 Const PropertyTagSRGBRenderingIntent = &h0303 222 223 Const PropertyTagImageTitle = &h0320 224 Const PropertyTagCopyright = &h8298 225 226 ' Extra TAGs (Like Adobe Image Information tags etc.) 227 228 Const PropertyTagResolutionXUnit = &h5001 229 Const PropertyTagResolutionYUnit = &h5002 230 Const PropertyTagResolutionXLengthUnit = &h5003 231 Const PropertyTagResolutionYLengthUnit = &h5004 232 Const PropertyTagPrintFlags = &h5005 233 Const PropertyTagPrintFlagsVersion = &h5006 234 Const PropertyTagPrintFlagsCrop = &h5007 235 Const PropertyTagPrintFlagsBleedWidth = &h5008 236 Const PropertyTagPrintFlagsBleedWidthScale = &h5009 237 Const PropertyTagHalftoneLPI = &h500A 238 Const PropertyTagHalftoneLPIUnit = &h500B 239 Const PropertyTagHalftoneDegree = &h500C 240 Const PropertyTagHalftoneShape = &h500D 241 Const PropertyTagHalftoneMisc = &h500E 242 Const PropertyTagHalftoneScreen = &h500F 243 Const PropertyTagJPEGQuality = &h5010 244 Const PropertyTagGridSize = &h5011 245 Const PropertyTagThumbnailFormat = &h5012 ' 1 = JPEG, 0 = RAW RGB 246 Const PropertyTagThumbnailWidth = &h5013 247 Const PropertyTagThumbnailHeight = &h5014 248 Const PropertyTagThumbnailColorDepth = &h5015 249 Const PropertyTagThumbnailPlanes = &h5016 250 Const PropertyTagThumbnailRawBytes = &h5017 251 Const PropertyTagThumbnailSize = &h5018 252 Const PropertyTagThumbnailCompressedSize = &h5019 253 Const PropertyTagColorTransferFunction = &h501A 254 Const PropertyTagThumbnailData = &h501B' RAW thumbnail bits in 255 ' JPEG format or RGB format 256 ' depends on 257 ' PropertyTagThumbnailFormat 258 259 ' Thumbnail related TAGs 260 261 Const PropertyTagThumbnailImageWidth = &h5020 ' Thumbnail width 262 Const PropertyTagThumbnailImageHeight = &h5021 ' Thumbnail height 263 Const PropertyTagThumbnailBitsPerSample = &h5022 ' Number of bits per 264 ' component 265 Const PropertyTagThumbnailCompression = &h5023 ' Compression Scheme 266 Const PropertyTagThumbnailPhotometricInterp = &h5024 ' Pixel composition 267 Const PropertyTagThumbnailImageDescription = &h5025 ' Image Tile 268 Const PropertyTagThumbnailEquipMake = &h5026 ' Manufacturer of Image 269 ' Input equipment 270 Const PropertyTagThumbnailEquipModel = &h5027 ' Model of Image input 271 ' equipment 272 Const PropertyTagThumbnailStripOffsets = &h5028 ' Image data location 273 Const PropertyTagThumbnailOrientation = &h5029 ' Orientation of image 274 Const PropertyTagThumbnailSamplesPerPixel = &h502A ' Number of components 275 Const PropertyTagThumbnailRowsPerStrip = &h502B ' Number of rows per strip 276 Const PropertyTagThumbnailStripBytesCount = &h502C ' Bytes per compressed 277 ' strip 278 Const PropertyTagThumbnailResolutionX = &h502D ' Resolution in width 279 ' direction 280 Const PropertyTagThumbnailResolutionY = &h502E ' Resolution in height 281 ' direction 282 Const PropertyTagThumbnailPlanarConfig = &h502F ' Image data arrangement 283 Const PropertyTagThumbnailResolutionUnit = &h5030 ' Unit of X and Y 284 ' Resolution 285 Const PropertyTagThumbnailTransferFunction = &h5031 ' Transfer function 286 Const PropertyTagThumbnailSoftwareUsed = &h5032 ' Software used 287 Const PropertyTagThumbnailDateTime = &h5033 ' File change date and 288 ' time 289 Const PropertyTagThumbnailArtist = &h5034 ' Person who created the 290 ' image 291 Const PropertyTagThumbnailWhitePoint = &h5035 ' White point chromaticity 292 Const PropertyTagThumbnailPrimaryChromaticities = &h5036 293 ' Chromaticities of 294 ' primaries 295 Const PropertyTagThumbnailYCbCrCoefficients = &h5037 ' Color space transforma- 296 ' tion coefficients 297 Const PropertyTagThumbnailYCbCrSubsampling = &h5038 ' Subsampling ratio of Y 298 ' to C 299 Const PropertyTagThumbnailYCbCrPositioning = &h5039 ' Y and C position 300 Const PropertyTagThumbnailRefBlackWhite = &h503A ' Pair of black and white 301 ' reference values 302 Const PropertyTagThumbnailCopyRight = &h503B ' CopyRight holder 303 304 Const PropertyTagLuminanceTable = &h5090 305 Const PropertyTagChrominanceTable = &h5091 306 307 Const PropertyTagFrameDelay = &h5100 308 Const PropertyTagLoopCount = &h5101 309 310 Const PropertyTagPixelUnit = &h5110 ' Unit specifier for pixel/unit 311 Const PropertyTagPixelPerUnitX = &h5111 ' Pixels per unit in X 312 Const PropertyTagPixelPerUnitY = &h5112 ' Pixels per unit in Y 313 Const PropertyTagPaletteHistogram = &h5113 ' Palette histogram 314 315 ' EXIF specific tag 316 317 Const PropertyTagExifExposureTime = &h829A 318 Const PropertyTagExifFNumber = &h829D 319 320 Const PropertyTagExifExposureProg = &h8822 321 Const PropertyTagExifSpectralSense = &h8824 322 Const PropertyTagExifISOSpeed = &h8827 323 Const PropertyTagExifOECF = &h8828 324 325 Const PropertyTagExifVer = &h9000 326 Const PropertyTagExifDTOrig = &h9003 ' Date & time of original 327 Const PropertyTagExifDTDigitized = &h9004 ' Date & time of digital data generation 328 329 Const PropertyTagExifCompConfig = &h9101 330 Const PropertyTagExifCompBPP = &h9102 331 332 Const PropertyTagExifShutterSpeed = &h9201 333 Const PropertyTagExifAperture = &h9202 334 Const PropertyTagExifBrightness = &h9203 335 Const PropertyTagExifExposureBias = &h9204 336 Const PropertyTagExifMaxAperture = &h9205 337 Const PropertyTagExifSubjectDist = &h9206 338 Const PropertyTagExifMeteringMode = &h9207 339 Const PropertyTagExifLightSource = &h9208 340 Const PropertyTagExifFlash = &h9209 341 Const PropertyTagExifFocalLength = &h920A 342 Const PropertyTagExifMakerNote = &h927C 343 Const PropertyTagExifUserComment = &h9286 344 Const PropertyTagExifDTSubsec = &h9290 ' Date & Time subseconds 345 Const PropertyTagExifDTOrigSS = &h9291 ' Date & Time original subseconds 346 Const PropertyTagExifDTDigSS = &h9292 ' Date & TIme digitized subseconds 347 348 Const PropertyTagExifFPXVer = &hA000 349 Const PropertyTagExifColorSpace = &hA001 350 Const PropertyTagExifPixXDim = &hA002 351 Const PropertyTagExifPixYDim = &hA003 352 Const PropertyTagExifRelatedWav = &hA004 ' related sound file 353 Const PropertyTagExifInterop = &hA005 354 Const PropertyTagExifFlashEnergy = &hA20B 355 Const PropertyTagExifSpatialFR = &hA20C ' Spatial Frequency Response 356 Const PropertyTagExifFocalXRes = &hA20E ' Focal Plane X Resolution 357 Const PropertyTagExifFocalYRes = &hA20F ' Focal Plane Y Resolution 358 Const PropertyTagExifFocalResUnit = &hA210 ' Focal Plane Resolution Unit 359 Const PropertyTagExifSubjectLoc = &hA214 360 Const PropertyTagExifExposureIndex = &hA215 361 Const PropertyTagExifSensingMethod = &hA217 362 Const PropertyTagExifFileSource = &hA300 363 Const PropertyTagExifSceneType = &hA301 364 Const PropertyTagExifCfaPattern = &hA302 365 366 Const PropertyTagGpsVer = &h0000 367 Const PropertyTagGpsLatitudeRef = &h0001 368 Const PropertyTagGpsLatitude = &h0002 369 Const PropertyTagGpsLongitudeRef = &h0003 370 Const PropertyTagGpsLongitude = &h0004 371 Const PropertyTagGpsAltitudeRef = &h0005 372 Const PropertyTagGpsAltitude = &h0006 373 Const PropertyTagGpsGpsTime = &h0007 374 Const PropertyTagGpsGpsSatellites = &h0008 375 Const PropertyTagGpsGpsStatus = &h0009 376 Const PropertyTagGpsGpsMeasureMode = &h00A 377 Const PropertyTagGpsGpsDop = &h000B ' Measurement precision 378 Const PropertyTagGpsSpeedRef = &h000C 379 Const PropertyTagGpsSpeed = &h000D 380 Const PropertyTagGpsTrackRef = &h000E 381 Const PropertyTagGpsTrack = &h000F 382 Const PropertyTagGpsImgDirRef = &h0010 383 Const PropertyTagGpsImgDir = &h0011 384 Const PropertyTagGpsMapDatum = &h0012 385 Const PropertyTagGpsDestLatRef = &h0013 386 Const PropertyTagGpsDestLat = &h0014 387 Const PropertyTagGpsDestLongRef = &h0015 388 Const PropertyTagGpsDestLong = &h0016 389 Const PropertyTagGpsDestBearRef = &h0017 390 Const PropertyTagGpsDestBear = &h0018 391 Const PropertyTagGpsDestDistRef = &h0019 392 Const PropertyTagGpsDestDist = &h001A 393 394 Type ImageCodecInfo 395 Clsid As CLSID 396 FormatID As GUID 397 CodecName As PCWSTR 398 DllName As PCWSTR 399 FormatDescription As PCWSTR 400 FilenameExtension As PCWSTR 401 MimeType As PCWSTR 402 Flags As DWord 403 Version As DWord 404 SigCount As DWord 405 SigSize As DWord 406 SigPattern As *Byte 407 SigMask As DWord 408 End Type 409 410 End Namespace 411 83 412 #endif '__GDIPLUSTYPES_AB__
Note:
See TracChangeset
for help on using the changeset viewer.