Changeset 705 for trunk


Ignore:
Timestamp:
Apr 9, 2009, 10:24:28 PM (15 years ago)
Author:
イグトランス (egtra)
Message:

Metafileクラスの追加
(#242)

Location:
trunk/ab5.0/ablib/src
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/Drawing/Graphics.ab

    r703 r705  
    77Public
    88    nativeImage As *GpImageAttributes
    9 End Class
    10 Class Metafile
    11 Inherits Image
    129End Class
    1310Class Region
     
    894891    End Sub
    895892
    896     Sub EnumerateMetafile(metafile As Metafile, ByRef destPoint As PointF,
     893    Sub EnumerateMetafile(metafile As Imaging.Metafile, ByRef destPoint As PointF,
    897894        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
    898895
     
    906903    End Sub
    907904
    908     Sub EnumerateMetafile(metafile As Metafile, ByRef destPoint As Point,
     905    Sub EnumerateMetafile(metafile As Imaging.Metafile, ByRef destPoint As Point,
    909906        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
    910907
     
    918915    End Sub
    919916
    920     Sub EnumerateMetafile(metafile As Metafile, ByRef destRect As RectangleF,
     917    Sub EnumerateMetafile(metafile As Imaging.Metafile, ByRef destRect As RectangleF,
    921918        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
    922919
     
    930927    End Sub
    931928
    932     Sub EnumerateMetafile(metafile As Metafile, ByRef destRect As Rectangle,
     929    Sub EnumerateMetafile(metafile As Imaging.Metafile, ByRef destRect As Rectangle,
    933930        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
    934931
     
    942939    End Sub
    943940
    944     Sub EnumerateMetafile(metafile As Metafile, destPoints As *PointF, count As Long,
     941    Sub EnumerateMetafile(metafile As Imaging.Metafile, destPoints As *PointF, count As Long,
    945942        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
    946943
     
    954951    End Sub
    955952
    956     Sub EnumerateMetafile(metafile As Metafile, destPoints As *Point, count As Long,
     953    Sub EnumerateMetafile(metafile As Imaging.Metafile, destPoints As *Point, count As Long,
    957954        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
    958955
     
    966963    End Sub
    967964
    968     Sub EnumerateMetafile(metafile As Metafile,
     965    Sub EnumerateMetafile(metafile As Imaging.Metafile,
    969966        ByRef destPoint As PointF, ByRef srcRect As RectangleF, srcUnit As GraphicsUnit,
    970967        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
     
    979976    End Sub
    980977
    981     Sub EnumerateMetafile(metafile As Metafile,
     978    Sub EnumerateMetafile(metafile As Imaging.Metafile,
    982979        ByRef destPoint As Point, ByRef srcRect As Rectangle, srcUnit As GraphicsUnit,
    983980        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
     
    992989    End Sub
    993990
    994     Sub EnumerateMetafile(metafile As Metafile,
     991    Sub EnumerateMetafile(metafile As Imaging.Metafile,
    995992        ByRef destRect As RectangleF, ByRef srcRect As RectangleF, srcUnit As GraphicsUnit,
    996993        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
     
    10051002    End Sub
    10061003
    1007     Sub EnumerateMetafile(metafile As Metafile,
     1004    Sub EnumerateMetafile(metafile As Imaging.Metafile,
    10081005        ByRef destRect As Rectangle, ByRef srcRect As Rectangle, srcUnit As GraphicsUnit,
    10091006        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
     
    10181015    End Sub
    10191016
    1020     Sub EnumerateMetafile(metafile As Metafile,
     1017    Sub EnumerateMetafile(metafile As Imaging.Metafile,
    10211018        destPoints As *PointF, count As Long, ByRef srcRect As RectangleF, srcUnit As GraphicsUnit,
    10221019        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
     
    10311028    End Sub
    10321029
    1033     Sub EnumerateMetafile(metafile As Metafile,
     1030    Sub EnumerateMetafile(metafile As Imaging.Metafile,
    10341031        destPoints As *Point, count As Long, ByRef srcRect As Rectangle, srcUnit As GraphicsUnit,
    10351032        callback As EnumerateMetafileProc, callbackData = 0 As VoidPtr, imageAttr = Nothing As ImageAttributes)
  • trunk/ab5.0/ablib/src/Classes/System/Drawing/Imaging/misc.ab

    r703 r705  
    99
    1010Enum ColorMode
    11     ARGB32 = 0
    12     ARGB64 = 1
     11    Argb32Mode = 0
     12    Argb64Mode = 1
    1313End Enum
    1414
     
    6464
    6565Enum PaletteFlags
    66     PaletteFlagsHasAlpha    = &h0001
    67     PaletteFlagsGrayScale   = &h0002
    68     PaletteFlagsHalftone    = &h0004
     66    HasAlpha = 1
     67    GrayScale = 2
     68    Halftone = 4
    6969End Enum
    7070
     
    9595
    9696Enum ColorMatrixFlag
    97     Default   = 0
     97    Default = 0
    9898    SkipGrays = 1
    99     AltGray   = 2
     99    AltGray = 2
    100100End Enum
    101101
    102102Enum ImageCodecFlags
    103     Encoder            = &h00000001
    104     Decoder            = &h00000002
    105     SupportBitmap      = &h00000004
    106     SupportVector      = &h00000008
    107     SeekableEncode     = &h00000010
    108     BlockingDecode     = &h00000020
    109 
    110     Builtin            = &h00010000
    111     System             = &h00020000
    112     User               = &h00040000
     103    Encoder = &h00000001
     104    Decoder = &h00000002
     105    SupportBitmap = &h00000004
     106    SupportVector = &h00000008
     107    SeekableEncode = &h00000010
     108    BlockingDecode = &h00000020
     109
     110    Builtin = &h00010000
     111    System = &h00020000
     112    User = &h00040000
    113113End Enum
    114114
    115115Enum ImageLockMode
    116     Read        = &h0001
    117     Write       = &h0002
     116    Read = &h0001
     117    Write = &h0002
    118118    UserInputBuf= &h0004
    119119End Enum
     
    142142End Type
    143143
    144 Const PropertyTagTypeByte        = 1
    145 Const PropertyTagTypeASCII       = 2
    146 Const PropertyTagTypeShort       = 3
    147 Const PropertyTagTypeLong        = 4
    148 Const PropertyTagTypeRational    = 5
    149 Const PropertyTagTypeUndefined   = 7
    150 Const PropertyTagTypeSLONG       = 9
    151 Const PropertyTagTypeSRational  = 10
    152 
    153 Const PropertyTagExifIFD             = &h8769
    154 Const PropertyTagGpsIFD              = &h8825
    155 
    156 Const PropertyTagNewSubfileType      = &h00FE
    157 Const PropertyTagSubfileType         = &h00FF
    158 Const PropertyTagImageWidth          = &h0100
    159 Const PropertyTagImageHeight         = &h0101
    160 Const PropertyTagBitsPerSample       = &h0102
    161 Const PropertyTagCompression         = &h0103
    162 Const PropertyTagPhotometricInterp   = &h0106
    163 Const PropertyTagThreshHolding       = &h0107
    164 Const PropertyTagCellWidth           = &h0108
    165 Const PropertyTagCellHeight          = &h0109
    166 Const PropertyTagFillOrder           = &h010A
    167 Const PropertyTagDocumentName        = &h010D
    168 Const PropertyTagImageDescription    = &h010E
    169 Const PropertyTagEquipMake           = &h010F
    170 Const PropertyTagEquipModel          = &h0110
    171 Const PropertyTagStripOffsets        = &h0111
    172 Const PropertyTagOrientation         = &h0112
    173 Const PropertyTagSamplesPerPixel     = &h0115
    174 Const PropertyTagRowsPerStrip        = &h0116
    175 Const PropertyTagStripBytesCount     = &h0117
    176 Const PropertyTagMinSampleValue      = &h0118
    177 Const PropertyTagMaxSampleValue      = &h0119
    178 Const PropertyTagXResolution         = &h011A   ' Image resolution in width direction
    179 Const PropertyTagYResolution         = &h011B   ' Image resolution in height direction
    180 Const PropertyTagPlanarConfig        = &h011C   ' Image data arrangement
    181 Const PropertyTagPageName            = &h011D
    182 Const PropertyTagXPosition           = &h011E
    183 Const PropertyTagYPosition           = &h011F
    184 Const PropertyTagFreeOffset          = &h0120
    185 Const PropertyTagFreeByteCounts      = &h0121
    186 Const PropertyTagGrayResponseUnit    = &h0122
    187 Const PropertyTagGrayResponseCurve   = &h0123
    188 Const PropertyTagT4Option            = &h0124
    189 Const PropertyTagT6Option            = &h0125
    190 Const PropertyTagResolutionUnit      = &h0128   ' Unit of X and Y resolution
    191 Const PropertyTagPageNumber          = &h0129
    192 Const PropertyTagTransferFuncition   = &h012D
    193 Const PropertyTagSoftwareUsed        = &h0131
    194 Const PropertyTagDateTime            = &h0132
    195 Const PropertyTagArtist              = &h013B
    196 Const PropertyTagHostComputer        = &h013C
    197 Const PropertyTagPredictor           = &h013D
    198 Const PropertyTagWhitePoint          = &h013E
    199 Const PropertyTagPrimaryChromaticities = &h013F
    200 Const PropertyTagColorMap            = &h0140
    201 Const PropertyTagHalftoneHints       = &h0141
    202 Const PropertyTagTileWidth           = &h0142
    203 Const PropertyTagTileLength          = &h0143
    204 Const PropertyTagTileOffset          = &h0144
    205 Const PropertyTagTileByteCounts      = &h0145
    206 Const PropertyTagInkSet              = &h014C
    207 Const PropertyTagInkNames            = &h014D
    208 Const PropertyTagNumberOfInks        = &h014E
    209 Const PropertyTagDotRange            = &h0150
    210 Const PropertyTagTargetPrinter       = &h0151
    211 Const PropertyTagExtraSamples        = &h0152
    212 Const PropertyTagSampleFormat        = &h0153
    213 Const PropertyTagSMinSampleValue     = &h0154
    214 Const PropertyTagSMaxSampleValue     = &h0155
    215 Const PropertyTagTransferRange       = &h0156
    216 
    217 Const PropertyTagJPEGProc            = &h0200
    218 Const PropertyTagJPEGInterFormat     = &h0201
    219 Const PropertyTagJPEGInterLength     = &h0202
    220 Const PropertyTagJPEGRestartInterval = &h0203
    221 Const PropertyTagJPEGLosslessPredictors  = &h0205
    222 Const PropertyTagJPEGPointTransforms     = &h0206
    223 Const PropertyTagJPEGQTables         = &h0207
    224 Const PropertyTagJPEGDCTables        = &h0208
    225 Const PropertyTagJPEGACTables        = &h0209
    226 
    227 Const PropertyTagYCbCrCoefficients   = &h0211
    228 Const PropertyTagYCbCrSubsampling    = &h0212
    229 Const PropertyTagYCbCrPositioning    = &h0213
    230 Const PropertyTagREFBlackWhite       = &h0214
    231 
    232 Const PropertyTagICCProfile          = &h8773   ' This TAG is defined by ICC
    233                                                 ' for embedded ICC in TIFF
    234 Const PropertyTagGamma               = &h0301
    235 Const PropertyTagICCProfileDescriptor = &h0302
    236 Const PropertyTagSRGBRenderingIntent = &h0303
    237 
    238 Const PropertyTagImageTitle          = &h0320
    239 Const PropertyTagCopyright           = &h8298
    240 
    241 ' Extra TAGs (Like Adobe Image Information tags etc.)
    242 
    243 Const PropertyTagResolutionXUnit           = &h5001
    244 Const PropertyTagResolutionYUnit           = &h5002
    245 Const PropertyTagResolutionXLengthUnit     = &h5003
    246 Const PropertyTagResolutionYLengthUnit     = &h5004
    247 Const PropertyTagPrintFlags                = &h5005
    248 Const PropertyTagPrintFlagsVersion         = &h5006
    249 Const PropertyTagPrintFlagsCrop            = &h5007
    250 Const PropertyTagPrintFlagsBleedWidth      = &h5008
    251 Const PropertyTagPrintFlagsBleedWidthScale = &h5009
    252 Const PropertyTagHalftoneLPI               = &h500A
    253 Const PropertyTagHalftoneLPIUnit           = &h500B
    254 Const PropertyTagHalftoneDegree            = &h500C
    255 Const PropertyTagHalftoneShape             = &h500D
    256 Const PropertyTagHalftoneMisc              = &h500E
    257 Const PropertyTagHalftoneScreen            = &h500F
    258 Const PropertyTagJPEGQuality               = &h5010
    259 Const PropertyTagGridSize                  = &h5011
    260 Const PropertyTagThumbnailFormat           = &h5012  ' 1 = JPEG, 0 = RAW RGB
    261 Const PropertyTagThumbnailWidth            = &h5013
    262 Const PropertyTagThumbnailHeight           = &h5014
    263 Const PropertyTagThumbnailColorDepth       = &h5015
    264 Const PropertyTagThumbnailPlanes           = &h5016
    265 Const PropertyTagThumbnailRawBytes         = &h5017
    266 Const PropertyTagThumbnailSize             = &h5018
    267 Const PropertyTagThumbnailCompressedSize   = &h5019
    268 Const PropertyTagColorTransferFunction     = &h501A
    269 Const PropertyTagThumbnailData             = &h501B' RAW thumbnail bits in
    270                                                    ' JPEG format or RGB format
    271                                                    ' depends on
    272                                                    ' PropertyTagThumbnailFormat
    273 
    274 ' Thumbnail related TAGs
    275 
    276 Const PropertyTagThumbnailImageWidth       = &h5020  ' Thumbnail width
    277 Const PropertyTagThumbnailImageHeight      = &h5021  ' Thumbnail height
    278 Const PropertyTagThumbnailBitsPerSample    = &h5022  ' Number of bits per
    279                                                      ' component
    280 Const PropertyTagThumbnailCompression      = &h5023  ' Compression Scheme
    281 Const PropertyTagThumbnailPhotometricInterp = &h5024 ' Pixel composition
    282 Const PropertyTagThumbnailImageDescription = &h5025  ' Image Tile
    283 Const PropertyTagThumbnailEquipMake        = &h5026  ' Manufacturer of Image
    284                                                      ' Input equipment
    285 Const PropertyTagThumbnailEquipModel       = &h5027  ' Model of Image input
    286                                                      ' equipment
    287 Const PropertyTagThumbnailStripOffsets     = &h5028  ' Image data location
    288 Const PropertyTagThumbnailOrientation      = &h5029  ' Orientation of image
    289 Const PropertyTagThumbnailSamplesPerPixel  = &h502A  ' Number of components
    290 Const PropertyTagThumbnailRowsPerStrip     = &h502B  ' Number of rows per strip
    291 Const PropertyTagThumbnailStripBytesCount  = &h502C  ' Bytes per compressed
    292                                                      ' strip
    293 Const PropertyTagThumbnailResolutionX      = &h502D  ' Resolution in width
    294                                                      ' direction
    295 Const PropertyTagThumbnailResolutionY      = &h502E  ' Resolution in height
    296                                                      ' direction
    297 Const PropertyTagThumbnailPlanarConfig     = &h502F  ' Image data arrangement
    298 Const PropertyTagThumbnailResolutionUnit   = &h5030  ' Unit of X and Y
    299                                                      ' Resolution
    300 Const PropertyTagThumbnailTransferFunction = &h5031  ' Transfer function
    301 Const PropertyTagThumbnailSoftwareUsed     = &h5032  ' Software used
    302 Const PropertyTagThumbnailDateTime         = &h5033  ' File change date and
    303                                                      ' time
    304 Const PropertyTagThumbnailArtist           = &h5034  ' Person who created the
    305                                                      ' image
    306 Const PropertyTagThumbnailWhitePoint       = &h5035  ' White point chromaticity
    307 Const PropertyTagThumbnailPrimaryChromaticities = &h5036
    308                                                      ' Chromaticities of
    309                                                      ' primaries
    310 Const PropertyTagThumbnailYCbCrCoefficients = &h5037 ' Color space transforma-
    311                                                      ' tion coefficients
    312 Const PropertyTagThumbnailYCbCrSubsampling = &h5038  ' Subsampling ratio of Y
    313                                                      ' to C
    314 Const PropertyTagThumbnailYCbCrPositioning = &h5039  ' Y and C position
    315 Const PropertyTagThumbnailRefBlackWhite    = &h503A  ' Pair of black and white
    316                                                      ' reference values
    317 Const PropertyTagThumbnailCopyRight        = &h503B  ' CopyRight holder
    318 
    319 Const PropertyTagLuminanceTable            = &h5090
    320 Const PropertyTagChrominanceTable          = &h5091
    321 
    322 Const PropertyTagFrameDelay                = &h5100
    323 Const PropertyTagLoopCount                 = &h5101
    324 
    325 Const PropertyTagPixelUnit         = &h5110  ' Unit specifier for pixel/unit
    326 Const PropertyTagPixelPerUnitX     = &h5111  ' Pixels per unit in X
    327 Const PropertyTagPixelPerUnitY     = &h5112  ' Pixels per unit in Y
    328 Const PropertyTagPaletteHistogram  = &h5113  ' Palette histogram
    329 
    330 ' EXIF specific tag
    331 
    332 Const PropertyTagExifExposureTime  = &h829A
    333 Const PropertyTagExifFNumber       = &h829D
    334 
    335 Const PropertyTagExifExposureProg  = &h8822
    336 Const PropertyTagExifSpectralSense = &h8824
    337 Const PropertyTagExifISOSpeed      = &h8827
    338 Const PropertyTagExifOECF          = &h8828
    339 
    340 Const PropertyTagExifVer            = &h9000
    341 Const PropertyTagExifDTOrig         = &h9003 ' Date & time of original
    342 Const PropertyTagExifDTDigitized    = &h9004 ' Date & time of digital data generation
    343 
    344 Const PropertyTagExifCompConfig     = &h9101
    345 Const PropertyTagExifCompBPP        = &h9102
    346 
    347 Const PropertyTagExifShutterSpeed   = &h9201
    348 Const PropertyTagExifAperture       = &h9202
    349 Const PropertyTagExifBrightness     = &h9203
    350 Const PropertyTagExifExposureBias   = &h9204
    351 Const PropertyTagExifMaxAperture    = &h9205
    352 Const PropertyTagExifSubjectDist    = &h9206
    353 Const PropertyTagExifMeteringMode   = &h9207
    354 Const PropertyTagExifLightSource    = &h9208
    355 Const PropertyTagExifFlash          = &h9209
    356 Const PropertyTagExifFocalLength    = &h920A
    357 Const PropertyTagExifMakerNote      = &h927C
    358 Const PropertyTagExifUserComment    = &h9286
    359 Const PropertyTagExifDTSubsec       = &h9290  ' Date & Time subseconds
    360 Const PropertyTagExifDTOrigSS       = &h9291  ' Date & Time original subseconds
    361 Const PropertyTagExifDTDigSS        = &h9292  ' Date & TIme digitized subseconds
    362 
    363 Const PropertyTagExifFPXVer         = &hA000
    364 Const PropertyTagExifColorSpace     = &hA001
    365 Const PropertyTagExifPixXDim        = &hA002
    366 Const PropertyTagExifPixYDim        = &hA003
    367 Const PropertyTagExifRelatedWav     = &hA004  ' related sound file
    368 Const PropertyTagExifInterop        = &hA005
    369 Const PropertyTagExifFlashEnergy    = &hA20B
    370 Const PropertyTagExifSpatialFR      = &hA20C  ' Spatial Frequency Response
    371 Const PropertyTagExifFocalXRes      = &hA20E  ' Focal Plane X Resolution
    372 Const PropertyTagExifFocalYRes      = &hA20F  ' Focal Plane Y Resolution
    373 Const PropertyTagExifFocalResUnit   = &hA210  ' Focal Plane Resolution Unit
    374 Const PropertyTagExifSubjectLoc     = &hA214
    375 Const PropertyTagExifExposureIndex  = &hA215
    376 Const PropertyTagExifSensingMethod  = &hA217
    377 Const PropertyTagExifFileSource     = &hA300
    378 Const PropertyTagExifSceneType      = &hA301
    379 Const PropertyTagExifCfaPattern     = &hA302
    380 
    381 Const PropertyTagGpsVer             = &h0000
    382 Const PropertyTagGpsLatitudeRef     = &h0001
    383 Const PropertyTagGpsLatitude        = &h0002
    384 Const PropertyTagGpsLongitudeRef    = &h0003
    385 Const PropertyTagGpsLongitude       = &h0004
    386 Const PropertyTagGpsAltitudeRef     = &h0005
    387 Const PropertyTagGpsAltitude        = &h0006
    388 Const PropertyTagGpsGpsTime         = &h0007
    389 Const PropertyTagGpsGpsSatellites   = &h0008
    390 Const PropertyTagGpsGpsStatus       = &h0009
    391 Const PropertyTagGpsGpsMeasureMode  = &h00A
    392 Const PropertyTagGpsGpsDop          = &h000B  ' Measurement precision
    393 Const PropertyTagGpsSpeedRef        = &h000C
    394 Const PropertyTagGpsSpeed           = &h000D
    395 Const PropertyTagGpsTrackRef        = &h000E
    396 Const PropertyTagGpsTrack           = &h000F
    397 Const PropertyTagGpsImgDirRef       = &h0010
    398 Const PropertyTagGpsImgDir          = &h0011
    399 Const PropertyTagGpsMapDatum        = &h0012
    400 Const PropertyTagGpsDestLatRef      = &h0013
    401 Const PropertyTagGpsDestLat         = &h0014
    402 Const PropertyTagGpsDestLongRef     = &h0015
    403 Const PropertyTagGpsDestLong        = &h0016
    404 Const PropertyTagGpsDestBearRef     = &h0017
    405 Const PropertyTagGpsDestBear        = &h0018
    406 Const PropertyTagGpsDestDistRef     = &h0019
    407 Const PropertyTagGpsDestDist        = &h001A
    408 
    409144Enum ColorChannelFlag
    410145    ColorChannelC = 0
     
    425160
    426161Enum EmfType
    427     Only     = 4 'MetafileType.Emf As Long
    428     PlusOnly = 5 'MetafileType.EmfPlusOnly As Long
    429     PlusDual = 6 'MetafileType.EmfPlusDual As Long
     162    EmfOnly = 4 'MetafileType.Emf As Long
     163    EmfPlusOnly = 5 'MetafileType.EmfPlusOnly As Long
     164    EmfPlusDual = 6 'MetafileType.EmfPlusDual As Long
     165End Enum
     166
     167Enum MetafileFrameUnit
     168    Pixel = 2
     169    Point = 3
     170    Inch = 4
     171    Document = 5
     172    Millimeter = 6
     173    GdiCompatible
    430174End Enum
    431175
    432176Enum EncoderParameterValueType
    433     Byte          = 1
    434     ASCII          = 2
    435     Short          = 3
    436     Long          = 4
    437     Rational      = 5
    438     LongRange      = 6
    439     Undefined      = 7
    440     RationalRange = 8
     177    ValueTypeByte = 1
     178    ValueTypeAscii = 2
     179    ValueTypeShort = 3
     180    ValueTypeLong = 4
     181    ValueTypeRational = 5
     182    ValueTypeLongRange = 6
     183    ValueTypeUndefined = 7
     184    ValueTypeRationalRange = 8
    441185End Enum
    442186
     
    746490End Namespace
    747491End Namespace
     492
     493Namespace Gdiplus
     494Const PropertyTagTypeByte        = 1
     495Const PropertyTagTypeASCII       = 2
     496Const PropertyTagTypeShort       = 3
     497Const PropertyTagTypeLong        = 4
     498Const PropertyTagTypeRational    = 5
     499Const PropertyTagTypeUndefined   = 7
     500Const PropertyTagTypeSLONG       = 9
     501Const PropertyTagTypeSRational  = 10
     502
     503Const PropertyTagExifIFD             = &h8769
     504Const PropertyTagGpsIFD              = &h8825
     505
     506Const PropertyTagNewSubfileType      = &h00FE
     507Const PropertyTagSubfileType         = &h00FF
     508Const PropertyTagImageWidth          = &h0100
     509Const PropertyTagImageHeight         = &h0101
     510Const PropertyTagBitsPerSample       = &h0102
     511Const PropertyTagCompression         = &h0103
     512Const PropertyTagPhotometricInterp   = &h0106
     513Const PropertyTagThreshHolding       = &h0107
     514Const PropertyTagCellWidth           = &h0108
     515Const PropertyTagCellHeight          = &h0109
     516Const PropertyTagFillOrder           = &h010A
     517Const PropertyTagDocumentName        = &h010D
     518Const PropertyTagImageDescription    = &h010E
     519Const PropertyTagEquipMake           = &h010F
     520Const PropertyTagEquipModel          = &h0110
     521Const PropertyTagStripOffsets        = &h0111
     522Const PropertyTagOrientation         = &h0112
     523Const PropertyTagSamplesPerPixel     = &h0115
     524Const PropertyTagRowsPerStrip        = &h0116
     525Const PropertyTagStripBytesCount     = &h0117
     526Const PropertyTagMinSampleValue      = &h0118
     527Const PropertyTagMaxSampleValue      = &h0119
     528Const PropertyTagXResolution         = &h011A
     529Const PropertyTagYResolution         = &h011B
     530Const PropertyTagPlanarConfig        = &h011C
     531Const PropertyTagPageName            = &h011D
     532Const PropertyTagXPosition           = &h011E
     533Const PropertyTagYPosition           = &h011F
     534Const PropertyTagFreeOffset          = &h0120
     535Const PropertyTagFreeByteCounts      = &h0121
     536Const PropertyTagGrayResponseUnit    = &h0122
     537Const PropertyTagGrayResponseCurve   = &h0123
     538Const PropertyTagT4Option            = &h0124
     539Const PropertyTagT6Option            = &h0125
     540Const PropertyTagResolutionUnit      = &h0128
     541Const PropertyTagPageNumber          = &h0129
     542Const PropertyTagTransferFuncition   = &h012D
     543Const PropertyTagSoftwareUsed        = &h0131
     544Const PropertyTagDateTime            = &h0132
     545Const PropertyTagArtist              = &h013B
     546Const PropertyTagHostComputer        = &h013C
     547Const PropertyTagPredictor           = &h013D
     548Const PropertyTagWhitePoint          = &h013E
     549Const PropertyTagPrimaryChromaticities = &h013F
     550Const PropertyTagColorMap            = &h0140
     551Const PropertyTagHalftoneHints       = &h0141
     552Const PropertyTagTileWidth           = &h0142
     553Const PropertyTagTileLength          = &h0143
     554Const PropertyTagTileOffset          = &h0144
     555Const PropertyTagTileByteCounts      = &h0145
     556Const PropertyTagInkSet              = &h014C
     557Const PropertyTagInkNames            = &h014D
     558Const PropertyTagNumberOfInks        = &h014E
     559Const PropertyTagDotRange            = &h0150
     560Const PropertyTagTargetPrinter       = &h0151
     561Const PropertyTagExtraSamples        = &h0152
     562Const PropertyTagSampleFormat        = &h0153
     563Const PropertyTagSMinSampleValue     = &h0154
     564Const PropertyTagSMaxSampleValue     = &h0155
     565Const PropertyTagTransferRange       = &h0156
     566
     567Const PropertyTagJPEGProc            = &h0200
     568Const PropertyTagJPEGInterFormat     = &h0201
     569Const PropertyTagJPEGInterLength     = &h0202
     570Const PropertyTagJPEGRestartInterval = &h0203
     571Const PropertyTagJPEGLosslessPredictors  = &h0205
     572Const PropertyTagJPEGPointTransforms     = &h0206
     573Const PropertyTagJPEGQTables         = &h0207
     574Const PropertyTagJPEGDCTables        = &h0208
     575Const PropertyTagJPEGACTables        = &h0209
     576
     577Const PropertyTagYCbCrCoefficients   = &h0211
     578Const PropertyTagYCbCrSubsampling    = &h0212
     579Const PropertyTagYCbCrPositioning    = &h0213
     580Const PropertyTagREFBlackWhite       = &h0214
     581
     582Const PropertyTagICCProfile          = &h8773
     583Const PropertyTagGamma               = &h0301
     584Const PropertyTagICCProfileDescriptor = &h0302
     585Const PropertyTagSRGBRenderingIntent = &h0303
     586
     587Const PropertyTagImageTitle          = &h0320
     588Const PropertyTagCopyright           = &h8298
     589
     590' Extra TAGs (Like Adobe Image Information tags etc.)
     591Const PropertyTagResolutionXUnit           = &h5001
     592Const PropertyTagResolutionYUnit           = &h5002
     593Const PropertyTagResolutionXLengthUnit     = &h5003
     594Const PropertyTagResolutionYLengthUnit     = &h5004
     595Const PropertyTagPrintFlags                = &h5005
     596Const PropertyTagPrintFlagsVersion         = &h5006
     597Const PropertyTagPrintFlagsCrop            = &h5007
     598Const PropertyTagPrintFlagsBleedWidth      = &h5008
     599Const PropertyTagPrintFlagsBleedWidthScale = &h5009
     600Const PropertyTagHalftoneLPI               = &h500A
     601Const PropertyTagHalftoneLPIUnit           = &h500B
     602Const PropertyTagHalftoneDegree            = &h500C
     603Const PropertyTagHalftoneShape             = &h500D
     604Const PropertyTagHalftoneMisc              = &h500E
     605Const PropertyTagHalftoneScreen            = &h500F
     606Const PropertyTagJPEGQuality               = &h5010
     607Const PropertyTagGridSize                  = &h5011
     608Const PropertyTagThumbnailFormat           = &h5012
     609Const PropertyTagThumbnailWidth            = &h5013
     610Const PropertyTagThumbnailHeight           = &h5014
     611Const PropertyTagThumbnailColorDepth       = &h5015
     612Const PropertyTagThumbnailPlanes           = &h5016
     613Const PropertyTagThumbnailRawBytes         = &h5017
     614Const PropertyTagThumbnailSize             = &h5018
     615Const PropertyTagThumbnailCompressedSize   = &h5019
     616Const PropertyTagColorTransferFunction     = &h501A
     617Const PropertyTagThumbnailData             = &h501B
     618
     619' Thumbnail related TAGs
     620Const PropertyTagThumbnailImageWidth       = &h5020
     621Const PropertyTagThumbnailImageHeight      = &h5021
     622Const PropertyTagThumbnailBitsPerSample    = &h5022
     623Const PropertyTagThumbnailCompression      = &h5023
     624Const PropertyTagThumbnailPhotometricInterp = &h5024
     625Const PropertyTagThumbnailImageDescription = &h5025
     626Const PropertyTagThumbnailEquipMake        = &h5026
     627Const PropertyTagThumbnailEquipModel       = &h5027
     628Const PropertyTagThumbnailStripOffsets     = &h5028
     629Const PropertyTagThumbnailOrientation      = &h5029
     630Const PropertyTagThumbnailSamplesPerPixel  = &h502A
     631Const PropertyTagThumbnailRowsPerStrip     = &h502B
     632Const PropertyTagThumbnailStripBytesCount  = &h502C
     633Const PropertyTagThumbnailResolutionX      = &h502D
     634Const PropertyTagThumbnailResolutionY      = &h502E
     635Const PropertyTagThumbnailPlanarConfig     = &h502F
     636Const PropertyTagThumbnailResolutionUnit   = &h5030
     637Const PropertyTagThumbnailTransferFunction = &h5031
     638Const PropertyTagThumbnailSoftwareUsed     = &h5032
     639Const PropertyTagThumbnailDateTime         = &h5033
     640Const PropertyTagThumbnailArtist           = &h5034
     641Const PropertyTagThumbnailWhitePoint       = &h5035
     642Const PropertyTagThumbnailPrimaryChromaticities = &h5036
     643Const PropertyTagThumbnailYCbCrCoefficients = &h5037
     644Const PropertyTagThumbnailYCbCrSubsampling = &h5038
     645Const PropertyTagThumbnailYCbCrPositioning = &h5039
     646Const PropertyTagThumbnailRefBlackWhite    = &h503A
     647Const PropertyTagThumbnailCopyRight        = &h503B
     648
     649Const PropertyTagLuminanceTable            = &h5090
     650Const PropertyTagChrominanceTable          = &h5091
     651
     652Const PropertyTagFrameDelay                = &h5100
     653Const PropertyTagLoopCount                 = &h5101
     654
     655Const PropertyTagPixelUnit         = &h5110
     656Const PropertyTagPixelPerUnitX     = &h5111
     657Const PropertyTagPixelPerUnitY     = &h5112
     658Const PropertyTagPaletteHistogram  = &h5113
     659
     660' EXIF specific tag
     661Const PropertyTagExifExposureTime  = &h829A
     662Const PropertyTagExifFNumber       = &h829D
     663
     664Const PropertyTagExifExposureProg  = &h8822
     665Const PropertyTagExifSpectralSense = &h8824
     666Const PropertyTagExifISOSpeed      = &h8827
     667Const PropertyTagExifOECF          = &h8828
     668
     669Const PropertyTagExifVer            = &h9000
     670Const PropertyTagExifDTOrig         = &h9003
     671Const PropertyTagExifDTDigitized    = &h9004
     672
     673Const PropertyTagExifCompConfig     = &h9101
     674Const PropertyTagExifCompBPP        = &h9102
     675
     676Const PropertyTagExifShutterSpeed   = &h9201
     677Const PropertyTagExifAperture       = &h9202
     678Const PropertyTagExifBrightness     = &h9203
     679Const PropertyTagExifExposureBias   = &h9204
     680Const PropertyTagExifMaxAperture    = &h9205
     681Const PropertyTagExifSubjectDist    = &h9206
     682Const PropertyTagExifMeteringMode   = &h9207
     683Const PropertyTagExifLightSource    = &h9208
     684Const PropertyTagExifFlash          = &h9209
     685Const PropertyTagExifFocalLength    = &h920A
     686Const PropertyTagExifMakerNote      = &h927C
     687Const PropertyTagExifUserComment    = &h9286
     688Const PropertyTagExifDTSubsec       = &h9290
     689Const PropertyTagExifDTOrigSS       = &h9291
     690Const PropertyTagExifDTDigSS        = &h9292
     691
     692Const PropertyTagExifFPXVer         = &hA000
     693Const PropertyTagExifColorSpace     = &hA001
     694Const PropertyTagExifPixXDim        = &hA002
     695Const PropertyTagExifPixYDim        = &hA003
     696Const PropertyTagExifRelatedWav     = &hA004
     697Const PropertyTagExifInterop        = &hA005
     698Const PropertyTagExifFlashEnergy    = &hA20B
     699Const PropertyTagExifSpatialFR      = &hA20C
     700Const PropertyTagExifFocalXRes      = &hA20E
     701Const PropertyTagExifFocalYRes      = &hA20F
     702Const PropertyTagExifFocalResUnit   = &hA210
     703Const PropertyTagExifSubjectLoc     = &hA214
     704Const PropertyTagExifExposureIndex  = &hA215
     705Const PropertyTagExifSensingMethod  = &hA217
     706Const PropertyTagExifFileSource     = &hA300
     707Const PropertyTagExifSceneType      = &hA301
     708Const PropertyTagExifCfaPattern     = &hA302
     709
     710Const PropertyTagGpsVer             = &h0000
     711Const PropertyTagGpsLatitudeRef     = &h0001
     712Const PropertyTagGpsLatitude        = &h0002
     713Const PropertyTagGpsLongitudeRef    = &h0003
     714Const PropertyTagGpsLongitude       = &h0004
     715Const PropertyTagGpsAltitudeRef     = &h0005
     716Const PropertyTagGpsAltitude        = &h0006
     717Const PropertyTagGpsGpsTime         = &h0007
     718Const PropertyTagGpsGpsSatellites   = &h0008
     719Const PropertyTagGpsGpsStatus       = &h0009
     720Const PropertyTagGpsGpsMeasureMode  = &h000A
     721Const PropertyTagGpsGpsDop          = &h000B
     722Const PropertyTagGpsSpeedRef        = &h000C
     723Const PropertyTagGpsSpeed           = &h000D
     724Const PropertyTagGpsTrackRef        = &h000E
     725Const PropertyTagGpsTrack           = &h000F
     726Const PropertyTagGpsImgDirRef       = &h0010
     727Const PropertyTagGpsImgDir          = &h0011
     728Const PropertyTagGpsMapDatum        = &h0012
     729Const PropertyTagGpsDestLatRef      = &h0013
     730Const PropertyTagGpsDestLat         = &h0014
     731Const PropertyTagGpsDestLongRef     = &h0015
     732Const PropertyTagGpsDestLong        = &h0016
     733Const PropertyTagGpsDestBearRef     = &h0017
     734Const PropertyTagGpsDestBear        = &h0018
     735Const PropertyTagGpsDestDistRef     = &h0019
     736Const PropertyTagGpsDestDist        = &h001A
     737End Namespace
  • trunk/ab5.0/ablib/src/Classes/System/Drawing/misc.ab

    r701 r705  
    5151    TextRenderingHintAntiAlias
    5252    TextRenderingHintClearTypeGridFit
    53 End Enum
    54 
    55 Enum MetafileFrameUnit
    56     Pixel      = 2
    57     Point      = 3
    58     Inch       = 4
    59     Document   = 5
    60     Millimeter = 6
    61     Gdi
    6253End Enum
    6354
  • trunk/ab5.0/ablib/src/GdiPlusFlat.ab

    r704 r705  
    569569Declare Function GdipCreateMetafileFromStream Lib "gdiplus.dll" (ByVal stream As *IStream, ByRef metafile As *GpMetafile) As GpStatus
    570570Declare Function GdipRecordMetafile Lib "gdiplus.dll" (ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRectF, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
    571 Declare Function GdipRecordMetafileI Lib "gdiplus.dll" (ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRectF, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
     571Declare Function GdipRecordMetafileI Lib "gdiplus.dll" (ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRect, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
    572572Declare Function GdipRecordMetafileFileName Lib "gdiplus.dll" (ByVal filename As PCWSTR, ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRectF, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
    573 Declare Function GdipRecordMetafileFileNameI Lib "gdiplus.dll" (ByVal filename As PCWSTR, ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRectF, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
     573Declare Function GdipRecordMetafileFileNameI Lib "gdiplus.dll" (ByVal filename As PCWSTR, ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRect, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
    574574Declare Function GdipRecordMetafileStream Lib "gdiplus.dll" (ByVal stream As *IStream, ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRectF, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
    575 Declare Function GdipRecordMetafileStreamI Lib "gdiplus.dll" (ByVal stream As *IStream, ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRectF, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
     575Declare Function GdipRecordMetafileStreamI Lib "gdiplus.dll" (ByVal stream As *IStream, ByVal referenceHdc As HDC, ByVal emfType As Long /*EmfType*/, ByRef frameRect As GpRect, ByVal frameUnit As Long /*MetafileFrameUnit*/, ByVal description As PCWSTR, ByRef metafile As *GpMetafile) As GpStatus
    576576Declare Function GdipSetMetafileDownLevelRasterizationLimit Lib "gdiplus.dll" (ByVal metafile As *GpMetafile, ByVal metafileRasterizationLimitDpi As DWord) As GpStatus
    577577Declare Function GdipGetMetafileDownLevelRasterizationLimit Lib "gdiplus.dll" (ByVal metafile As *GpMetafile, ByRef metafileRasterizationLimitDpi As DWord) As GpStatus
Note: See TracChangeset for help on using the changeset viewer.