1 | ' GdiPlusEnums.ab |
---|
2 | |
---|
3 | Const FlatnessDefault = 1.0 / 4.0 |
---|
4 | |
---|
5 | TypeDef GraphicsState = DWord |
---|
6 | |
---|
7 | Const Enum CustomLineCapType |
---|
8 | CustomLineCapTypeDefault = 0 |
---|
9 | CustomLineCapTypeAdjustableArrow = 1 |
---|
10 | End Enum |
---|
11 | |
---|
12 | Const Enum ImageType |
---|
13 | ImageTypeUnknown ' 0 |
---|
14 | ImageTypeBitmap ' 1 |
---|
15 | ImageTypeMetafile ' 2 |
---|
16 | End Enum |
---|
17 | |
---|
18 | Const Enum BrushType |
---|
19 | BrushTypeSolidColor = 0 |
---|
20 | BrushTypeHatchFill = 1 |
---|
21 | BrushTypeTextureFill = 2 |
---|
22 | BrushTypePathGradient = 3 |
---|
23 | BrushTypeLinearGradient = 4 |
---|
24 | End Enum |
---|
25 | |
---|
26 | Const Enum ObjectType |
---|
27 | ObjectTypeInvalid |
---|
28 | ObjectTypeBrush |
---|
29 | ObjectTypePen |
---|
30 | ObjectTypePath |
---|
31 | ObjectTypeRegion |
---|
32 | ObjectTypeImage |
---|
33 | ObjectTypeFont |
---|
34 | ObjectTypeStringFormat |
---|
35 | ObjectTypeImageAttributes |
---|
36 | ObjectTypeCustomLineCap |
---|
37 | |
---|
38 | ' ObjectTypeMax = ObjectTypeCustomLineCap |
---|
39 | ' ObjectTypeMin = ObjectTypeBrush |
---|
40 | End Enum |
---|
41 | |
---|
42 | Const ObjectTypeIsValid(type_) = (type_ >= ObjectTypeMin) And (type_ <= ObjectTypeMax) |
---|
43 | |
---|
44 | Const GDIP_EMFPLUS_RECORD_BASE = &h00004000 |
---|
45 | Const GDIP_WMF_RECORD_BASE = &h00010000 |
---|
46 | Const GDIP_WMF_RECORD_TO_EMFPLUS(n) = ((n) Or GDIP_WMF_RECORD_BASE) ' As EmfPlusRecordType |
---|
47 | Const GDIP_EMFPLUS_RECORD_TO_WMF(n) = ((n) And (Not GDIP_WMF_RECORD_BASE)) |
---|
48 | 'Const GDIP_IS_WMF_RECORDTYPE(n) (((n) And GDIP_WMF_RECORD_BASE) <> 0) |
---|
49 | Function GDIP_IS_WMF_RECORDTYPE(n As DWord) As BOOL |
---|
50 | If (n And GDIP_WMF_RECORD_BASE) <> 0 Then |
---|
51 | GDIP_IS_WMF_RECORDTYPE = TRUE |
---|
52 | Else |
---|
53 | GDIP_IS_WMF_RECORDTYPE = FALSE |
---|
54 | End If |
---|
55 | End Function |
---|
56 | |
---|
57 | Const Enum DriverStringOptions |
---|
58 | DriverStringOptionsCmapLookup = 1 |
---|
59 | DriverStringOptionsVertical = 2 |
---|
60 | DriverStringOptionsRealizedAdvance = 4 |
---|
61 | DriverStringOptionsLimitSubpixel = 8 |
---|
62 | End Enum |
---|
63 | |
---|
64 | Const Enum EmfToWmfBitsFlags |
---|
65 | EmfToWmfBitsFlagsDefault = &h00000000 |
---|
66 | EmfToWmfBitsFlagsEmbedEmf = &h00000001 |
---|
67 | EmfToWmfBitsFlagsIncludePlaceable = &h00000002 |
---|
68 | EmfToWmfBitsFlagsNoXORClip = &h00000004 |
---|
69 | End Enum |
---|
70 | |
---|
71 | Const Enum GpTestControlEnum |
---|
72 | TestControlForceBilinear = 0 |
---|
73 | TestControlNoICM = 1 |
---|
74 | TestControlGetBuildNumber = 2 |
---|
75 | End Enum |
---|