-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathupmf.h
More file actions
3178 lines (2847 loc) · 187 KB
/
Copy pathupmf.h
File metadata and controls
3178 lines (2847 loc) · 187 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
@file upmf.h
@brief Structures, definitions, and function prototypes for EMF+ files.
EMF+ file Record structure derived from Microsoft's EMF+ Information pdf, releade date July 5,2012, link from
here:
http://msdn.microsoft.com/en-us/library/cc230724.aspx
If the direct link fails the document may be found
by searching for: "[MS-EMFPLUS]: Enhanced Metafile Format Plus Extensions "
EMR records and structures are EMF or common with EMF+
PMR records and structures are specific to EMF+
Using PMF instead of EMF+ because "+" is a problem in symbol names.
*****************************************************************************************
* WARNING: Microsoft's EMF+ documentation is little-endian for everything EXCEPT *
* bitfields, which are big-endian. See section 1.3.2 *
* That documentation also uses 0 as the MOST significant bit, N-1 as the least. *
* This code is little-endian throughout, and 0 is the LEAST significant bit *
*****************************************************************************************
*/
/*
File: upmf.h
Version: 0.0.6
Date: 13-MAY-2020
Author: David Mathog, Biology Division, Caltech
email: mathog@caltech.edu
Copyright: 2020 David Mathog and California Institute of Technology (Caltech)
*/
#ifndef _UPMF_
#define _UPMF_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stdbool.h>
#include "uemf.h"
/** \defgroup U_PMF_PMF_Misc PMF Miscellaneous defines
@{
*/
#define U_PMF_DROP_ELEMENTS 1 //!< Remove leading Elements value from data.
#define U_PMF_KEEP_ELEMENTS 0 //!< Retain leading Elements value from data.
#define U_SEG_NEW 1 //!< start a new segment in the path
#define U_SEG_OLD 0 //!< continue the old (current) segment in the path
#define U_FILTER_APPLY 1 //!< With U_PMR_DRAWIMAGEPOINTS_set, use whatever filter has been set up up.
#define U_FILTER_IGNORE 0 //!< With U_PMR_DRAWIMAGEPOINTS_set, ignore whatever filter has been set up up.
#define U_OBJRECLIM 65020 //!< Longest U_PMR_OBJECT that GDI+ will process
// used 9728 to test fragmenting of emitted object records
/** @} */
/** \defgroup U_PMF_DD_ PMF "standard" custom Dash Dot patterns for lines.
U_DD_DASH, U_DD_DOT, U_DD_DASHDOT, and U_DD_DASHDOTDOT are the only ones with corresponding
standard EMF and EMF+ dash/dot patterns.
These values are used to tell U_PMF_DASHEDLINEDATA_set2() to create one of 27 custom line patterns.
Other custom line patterns may be created using U_PMF_DASHEDLINEDATA_set(), but this provides an easier
way to get the same result if one of these patterns is acceptable.
The length is divided by 2X the number of elements, so dashdash has twice as many
dashes of half the length as just dash.
Dot is 1/8 of (sub)unit length
Dash is 1/2 of (sub)unit length
Long is 3/4 of (sub)unit length
Example: DotDot has (sub)unit length 1/2, so each dot will be 1/16 of unit length.
@{
*/
#define U_DD_Solid 0 //!< Solid line.
#define U_DD_Dash 1 //!< Dash line.
#define U_DD_DashDash 2 //!< Dash Dash line.
#define U_DD_DashDashDash 3 //!< Dash Dash Dash line.
#define U_DD_DashDashDashDash 4 //!< Dash Dash Dash Dash line.
#define U_DD_Dot 5 //!< Dot line.
#define U_DD_DotDot 6 //!< Dot Dot line.
#define U_DD_DotDotDot 7 //!< Dot Dot Dot line.
#define U_DD_DotDotDotDot 8 //!< Dot Dot Dot Dot line.
#define U_DD_DashDot 9 //!< Dash Dot line.
#define U_DD_DashDashDot 10 //!< Dash Dash Dot line.
#define U_DD_DashDashDotDot 11 //!< Dash Dash Dot Dot line.
#define U_DD_DashDashDashDot 12 //!< Dash Dash Das hDot line.
#define U_DD_DashDotDot 13 //!< Dash Dot Dot line.
#define U_DD_DashDotDotDot 14 //!< Dash Dot Dot Dot line.
#define U_DD_DashDotDashDot 15 //!< Dash Dot Dash Dot line.
#define U_DD_Long 16 //!< Long line.
#define U_DD_LongLong 17 //!< Long Long line.
#define U_DD_LongLongLong 18 //!< Long Long Long line.
#define U_DD_LongLongLongLong 19 //!< Long Long Long Long line.
#define U_DD_LongDot 20 //!< Long Dot line.
#define U_DD_LongLongDot 21 //!< Long Long Dot line.
#define U_DD_LongLongDotDot 22 //!< Long Long Dot Dot line.
#define U_DD_LongLongLongDot 23 //!< Long Long Long Dot line.
#define U_DD_LongDotDot 24 //!< Long Dot Dot line.
#define U_DD_LongDotDotDot 25 //!< Long Dot Dot Dot line.
#define U_DD_LongDotLongDot 26 //!< Long Dot Long Dot line.
#define U_DD_Types 27 //!< Types
/** @} */
/** \defgroup U_PMF_PMR_Qualifiers PMF RecordType Enumeration
EMF+ manual 2.1.1.1, Microsoft name: RecordType Enumeration
@{
*/
#define U_PMR_HEADER 0x0001 //!< U_PMRHeader record
#define U_PMR_ENDOFFILE 0x0002 //!< U_PMREndOfFile record
#define U_PMR_COMMENT 0x0003 //!< U_PMRComment record
#define U_PMR_GETDC 0x0004 //!< U_PMRGetDC record
#define U_PMR_MULTIFORMATSTART 0x0005 //!< U_PMRMultiFormatStart record
#define U_PMR_MULTIFORMATSECTION 0x0006 //!< U_PMRMultiFormatSection record
#define U_PMR_MULTIFORMATEND 0x0007 //!< U_PMRMultiFormatEnd record
#define U_PMR_OBJECT 0x0008 //!< U_PMRObject record
#define U_PMR_CLEAR 0x0009 //!< U_PMRClear record
#define U_PMR_FILLRECTS 0x000A //!< U_PMRFillRects record
#define U_PMR_DRAWRECTS 0x000B //!< U_PMRDrawRects record
#define U_PMR_FILLPOLYGON 0x000C //!< U_PMRFillPolygon record
#define U_PMR_DRAWLINES 0x000D //!< U_PMRDrawLines record
#define U_PMR_FILLELLIPSE 0x000E //!< U_PMRFillEllipse record
#define U_PMR_DRAWELLIPSE 0x000F //!< U_PMRDrawEllipse record
#define U_PMR_FILLPIE 0x0010 //!< U_PMRFillPie record
#define U_PMR_DRAWPIE 0x0011 //!< U_PMRDrawPie record
#define U_PMR_DRAWARC 0x0012 //!< U_PMRDrawArc record
#define U_PMR_FILLREGION 0x0013 //!< U_PMRFillRegion record
#define U_PMR_FILLPATH 0x0014 //!< U_PMRFillPath record
#define U_PMR_DRAWPATH 0x0015 //!< U_PMRDrawPath record
#define U_PMR_FILLCLOSEDCURVE 0x0016 //!< U_PMRFillClosedCurve record
#define U_PMR_DRAWCLOSEDCURVE 0x0017 //!< U_PMRDrawClosedCurve record
#define U_PMR_DRAWCURVE 0x0018 //!< U_PMRDrawCurve record
#define U_PMR_DRAWBEZIERS 0x0019 //!< U_PMRDrawBeziers record
#define U_PMR_DRAWIMAGE 0x001A //!< U_PMRDrawImage record
#define U_PMR_DRAWIMAGEPOINTS 0x001B //!< U_PMRDrawImagePoints record
#define U_PMR_DRAWSTRING 0x001C //!< U_PMRDrawString record
#define U_PMR_SETRENDERINGORIGIN 0x001D //!< U_PMRSetRenderingOrigin record
#define U_PMR_SETANTIALIASMODE 0x001E //!< U_PMRSetAntiAliasMode record
#define U_PMR_SETTEXTRENDERINGHINT 0x001F //!< U_PMRSetTextRenderingHint record
#define U_PMR_SETTEXTCONTRAST 0x0020 //!< U_PMRSetTextContrast record
#define U_PMR_SETINTERPOLATIONMODE 0x0021 //!< U_PMRSetInterpolationMode record
#define U_PMR_SETPIXELOFFSETMODE 0x0022 //!< U_PMRSetPixelOffsetMode record
#define U_PMR_SETCOMPOSITINGMODE 0x0023 //!< U_PMRSetCompositingMode record
#define U_PMR_SETCOMPOSITINGQUALITY 0x0024 //!< U_PMRSetCompositingQuality record
#define U_PMR_SAVE 0x0025 //!< U_PMRSave record
#define U_PMR_RESTORE 0x0026 //!< U_PMRRestore record
#define U_PMR_BEGINCONTAINER 0x0027 //!< U_PMRBeginContainer record
#define U_PMR_BEGINCONTAINERNOPARAMS 0x0028 //!< U_PMRBeginContainerNoParams record
#define U_PMR_ENDCONTAINER 0x0029 //!< U_PMREndContainer record
#define U_PMR_SETWORLDTRANSFORM 0x002A //!< U_PMRSetWorldTransform record
#define U_PMR_RESETWORLDTRANSFORM 0x002B //!< U_PMRResetWorldTransform record
#define U_PMR_MULTIPLYWORLDTRANSFORM 0x002C //!< U_PMRMultiplyWorldTransform record
#define U_PMR_TRANSLATEWORLDTRANSFORM 0x002D //!< U_PMRTranslateWorldTransform record
#define U_PMR_SCALEWORLDTRANSFORM 0x002E //!< U_PMRScaleWorldTransform record
#define U_PMR_ROTATEWORLDTRANSFORM 0x002F //!< U_PMRRotateWorldTransform record
#define U_PMR_SETPAGETRANSFORM 0x0030 //!< U_PMRSetPageTransform record
#define U_PMR_RESETCLIP 0x0031 //!< U_PMRResetClip record
#define U_PMR_SETCLIPRECT 0x0032 //!< U_PMRSetClipRect record
#define U_PMR_SETCLIPPATH 0x0033 //!< U_PMRSetClipPath record
#define U_PMR_SETCLIPREGION 0x0034 //!< U_PMRSetClipRegion record
#define U_PMR_OFFSETCLIP 0x0035 //!< U_PMROffsetClip record
#define U_PMR_DRAWDRIVERSTRING 0x0036 //!< U_PMRDrawDriverstring record
#define U_PMR_STROKEFILLPATH 0x0037 //!< U_PMRStrokeFillPath record
#define U_PMR_SERIALIZABLEOBJECT 0x0038 //!< U_PMRSerializableObject record
#define U_PMR_SETTSGRAPHICS 0x0039 //!< U_PMRSetTSGraphics record
#define U_PMR_SETTSCLIP 0x003A //!< U_PMRSetTSClip record
#define U_PMR_RECFLAG 0x4000 //!< In EMF+ files the type is one of the above + this flag
#define U_PMR_TYPE_MASK 0x003F //!< mask for EMF+ types
#define U_PMR_MIN 1 //!< Minimum U_PMR_ value.
#define U_PMR_MAX 58 //!< Maximum U_PMR_ value.
/** @} */
/** \defgroup U_PMF_PID_Values PMF Identifiers for PseudoObjects
These are used by the *_set routines to identify types of PseudoObject.
Note that records are U_PMR_*_OID and other objects are U_PMF_*_OID
The numbers are derived from the EMF+ manual sections, as in 2.2.1.3 become
02020103. Numbers 40000000 and up are not derived from manual setions.
@{
*/
#define U_UNDEFINED_OID 0x00000000 //!< Undefined PseudoObject
#define U_PMF_BRUSH_OID 0x02020101 //!< PMF_BRUSH PseudoObject type.
#define U_PMF_CUSTOMLINECAP_OID 0x02020102 //!< PMF_CUSTOMLINECAP PseudoObject type.
#define U_PMF_FONT_OID 0x02020103 //!< PMF_FONT PseudoObject type.
#define U_PMF_IMAGE_OID 0x02020104 //!< PMF_IMAGE PseudoObject type.
#define U_PMF_IMAGEATTRIBUTES_OID 0x02020105 //!< PMF_IMAGEATTRIBUTES PseudoObject type.
#define U_PMF_PATH_OID 0x02020106 //!< PMF_PATH PseudoObject type.
#define U_PMF_PEN_OID 0x02020107 //!< PMF_PEN PseudoObject type.
#define U_PMF_REGION_OID 0x02020108 //!< PMF_REGION PseudoObject type.
#define U_PMF_STRINGFORMAT_OID 0x02020109 //!< PMF_STRINGFORMAT PseudoObject type.
#define U_PMF_ARGB_OID 0x02020201 //!< PMF_ARGB PseudoObject type.
#define U_PMF_BITMAP_OID 0x02020202 //!< PMF_BITMAP PseudoObject type.
#define U_PMF_BITMAPDATA_OID 0x02020203 //!< PMF_BITMAPDATA PseudoObject type.
#define U_PMF_BLENDCOLORS_OID 0x02020204 //!< PMF_BLENDCOLORS PseudoObject type.
#define U_PMF_BLENDFACTORS_OID 0x02020205 //!< PMF_BLENDFACTORS PseudoObject type.
#define U_PMF_BOUNDARYPATHDATA_OID 0x02020206 //!< PMF_BOUNDARYPATHDATA PseudoObject type.
#define U_PMF_BOUNDARYPOINTDATA_OID 0x02020207 //!< PMF_BOUNDARYPOINTDATA PseudoObject type.
#define U_PMF_CHARACTERRANGE_OID 0x02020208 //!< PMF_CHARACTERRANGE PseudoObject type.
#define U_PMF_COMPOUNDLINEDATA_OID 0x02020209 //!< PMF_COMPOUNDLINEDATA PseudoObject type.
#define U_PMF_COMPRESSEDIMAGE_OID 0x02020210 //!< PMF_COMPRESSEDIMAGE PseudoObject type.
#define U_PMF_CUSTOMENDCAPDATA_OID 0x02020211 //!< PMF_CUSTOMENDCAPDATA PseudoObject type.
#define U_PMF_CUSTOMLINECAPARROWDATA_OID 0x02020212 //!< PMF_CUSTOMLINECAPARROWDATA PseudoObject type.
#define U_PMF_CUSTOMLINECAPDATA_OID 0x02020213 //!< PMF_CUSTOMLINECAPDATA PseudoObject type.
#define U_PMF_CUSTOMLINECAPOPTIONALDATA_OID 0x02020214 //!< PMF_CUSTOMLINECAPOPTIONALDATA PseudoObject type.
#define U_PMF_CUSTOMSTARTCAPDATA_OID 0x02020215 //!< PMF_CUSTOMSTARTCAPDATA PseudoObject type.
#define U_PMF_DASHEDLINEDATA_OID 0x02020216 //!< PMF_DASHEDLINEDATA PseudoObject type.
#define U_PMF_FILLPATHOBJ_OID 0x02020217 //!< PMF_FILLPATHOBJ PseudoObject type.
#define U_PMF_FOCUSSCALEDATA_OID 0x02020218 //!< PMF_FOCUSSCALEDATA PseudoObject type.
#define U_PMF_GRAPHICSVERSION_OID 0x02020219 //!< PMF_GRAPHICSVERSION PseudoObject type.
#define U_PMF_HATCHBRUSHDATA_OID 0x02020220 //!< PMF_HATCHBRUSHDATA PseudoObject type.
#define U_PMF_INTEGER7_OID 0x02020221 //!< PMF_INTEGER7 PseudoObject type.
#define U_PMF_INTEGER15_OID 0x02020222 //!< PMF_INTEGER15 PseudoObject type.
#define U_PMF_LANGUAGEIDENTIFIER_OID 0x02020223 //!< PMF_LANGUAGEIDENTIFIER PseudoObject type.
#define U_PMF_LINEARGRADIENTBRUSHDATA_OID 0x02020224 //!< PMF_LINEARGRADIENTBRUSHDATA PseudoObject type.
#define U_PMF_LINEARGRADIENTBRUSHOPTIONALDATA_OID 0x02020225 //!< PMF_LINEARGRADIENTBRUSHOPTIONALDATA PseudoObject type.
#define U_PMF_LINEPATH_OID 0x02020226 //!< PMF_LINEPATH PseudoObject type.
#define U_PMF_METAFILE_OID 0x02020227 //!< PMF_METAFILE PseudoObject type.
#define U_PMF_PALETTE_OID 0x02020228 //!< PMF_PALETTE PseudoObject type.
#define U_PMF_PATHGRADIENTBRUSHDATA_OID 0x02020229 //!< PMF_PATHGRADIENTBRUSHDATA PseudoObject type.
#define U_PMF_PATHGRADIENTBRUSHOPTIONALDATA_OID 0x02020230 //!< PMF_PATHGRADIENTBRUSHOPTIONALDATA PseudoObject type.
#define U_PMF_PATHPOINTTYPE_OID 0x02020231 //!< PMF_PATHPOINTTYPE PseudoObject type.
#define U_PMF_PATHPOINTTYPERLE_OID 0x02020232 //!< PMF_PATHPOINTTYPERLE PseudoObject type.
#define U_PMF_PENDATA_OID 0x02020233 //!< PMF_PENDATA PseudoObject type.
#define U_PMF_PENOPTIONALDATA_OID 0x02020234 //!< PMF_PENOPTIONALDATA PseudoObject type.
#define U_PMF_POINT_OID 0x02020235 //!< PMF_POINT PseudoObject type.
#define U_PMF_POINTF_OID 0x02020236 //!< PMF_POINTF PseudoObject type.
#define U_PMF_POINTR_OID 0x02020237 //!< PMF_POINTR PseudoObject type.
#define U_PMF_RECT_OID 0x02020238 //!< PMF_RECT PseudoObject type.
#define U_PMF_RECTF_OID 0x02020239 //!< PMF_RECTF PseudoObject type.
#define U_PMF_REGIONNODE_OID 0x02020240 //!< PMF_REGIONNODE PseudoObject type.
#define U_PMF_REGIONNODECHILDNODES_OID 0x02020241 //!< PMF_REGIONNODECHILDNODES PseudoObject type.
#define U_PMF_REGIONNODEPATH_OID 0x02020242 //!< PMF_REGIONNODEPATH PseudoObject type.
#define U_PMF_SOLIDBRUSHDATA_OID 0x02020243 //!< PMF_SOLIDBRUSHDATA PseudoObject type.
#define U_PMF_STRINGFORMATDATA_OID 0x02020244 //!< PMF_STRINGFORMATDATA PseudoObject type.
#define U_PMF_TEXTUREBRUSHDATA_OID 0x02020245 //!< PMF_TEXTUREBRUSHDATA PseudoObject type.
#define U_PMF_TEXTUREBRUSHOPTIONALDATA_OID 0x02020246 //!< PMF_TEXTUREBRUSHOPTIONALDATA PseudoObject type.
#define U_PMF_TRANSFORMMATRIX_OID 0x02020247 //!< PMF_TRANSFORMMATRIX PseudoObject type.
#define U_PMF_IE_BLUR_OID 0x02020301 //!< PMF_IE_BLUR PseudoObject type.
#define U_PMF_IE_BRIGHTNESSCONTRAST_OID 0x02020302 //!< PMF_IE_BRIGHTNESSCONTRAST PseudoObject type.
#define U_PMF_IE_COLORBALANCE_OID 0x02020303 //!< PMF_IE_COLORBALANCE PseudoObject type.
#define U_PMF_IE_COLORCURVE_OID 0x02020304 //!< PMF_IE_COLORCURVE PseudoObject type.
#define U_PMF_IE_COLORLOOKUPTABLE_OID 0x02020305 //!< PMF_IE_COLORLOOKUPTABLE PseudoObject type.
#define U_PMF_IE_COLORMATRIX_OID 0x02020306 //!< PMF_IE_COLORMATRIX PseudoObject type.
#define U_PMF_IE_HUESATURATIONLIGHTNESS_OID 0x02020307 //!< PMF_IE_HUESATURATIONLIGHTNESS PseudoObject type.
#define U_PMF_IE_LEVELS_OID 0x02020308 //!< PMF_IE_LEVELS PseudoObject type.
#define U_PMF_IE_REDEYECORRECTION_OID 0x02020309 //!< PMF_IE_REDEYECORRECTION PseudoObject type.
#define U_PMF_IE_SHARPEN_OID 0x02020310 //!< PMF_IE_SHARPEN PseudoObject type.
#define U_PMF_IE_TINT_OID 0x02020311 //!< PMF_IE_TINT PseudoObject type.
#define U_PMR_STROKEFILLPATH_OID 0x02010101 //!< PMR_STROKEFILLPATH PseudoObject type. (Mentioned in passing here).
#define U_PMR_OFFSETCLIP_OID 0x02030101 //!< PMR_OFFSETCLIP PseudoObject type.
#define U_PMR_RESETCLIP_OID 0x02030102 //!< PMR_RESETCLIP PseudoObject type.
#define U_PMR_SETCLIPPATH_OID 0x02030103 //!< PMR_SETCLIPPATH PseudoObject type.
#define U_PMR_SETCLIPRECT_OID 0x02030104 //!< PMR_SETCLIPRECT PseudoObject type.
#define U_PMR_SETCLIPREGION_OID 0x02030105 //!< PMR_SETCLIPREGION PseudoObject type.
#define U_PMR_COMMENT_OID 0x02030201 //!< PMR_COMMENT PseudoObject type.
#define U_PMR_ENDOFFILE_OID 0x02030301 //!< PMR_ENDOFFILE PseudoObject type.
#define U_PMR_GETDC_OID 0x02030302 //!< PMR_GETDC PseudoObject type.
#define U_PMR_HEADER_OID 0x02030303 //!< PMR_HEADER PseudoObject type.
#define U_PMR_CLEAR_OID 0x02030401 //!< PMR_CLEAR PseudoObject type.
#define U_PMR_DRAWARC_OID 0x02030402 //!< PMR_DRAWARC PseudoObject type.
#define U_PMR_DRAWBEZIERS_OID 0x02030403 //!< PMR_DRAWBEZIERS PseudoObject type.
#define U_PMR_DRAWCLOSEDCURVE_OID 0x02030404 //!< PMR_DRAWCLOSEDCURVE PseudoObject type.
#define U_PMR_DRAWCURVE_OID 0x02030405 //!< PMR_DRAWCURVE PseudoObject type.
#define U_PMR_DRAWDRIVERSTRING_OID 0x02030406 //!< PMR_DRAWDRIVERSTRING PseudoObject type.
#define U_PMR_DRAWELLIPSE_OID 0x02030407 //!< PMR_DRAWELLIPSE PseudoObject type.
#define U_PMR_DRAWIMAGE_OID 0x02030408 //!< PMR_DRAWIMAGE PseudoObject type.
#define U_PMR_DRAWIMAGEPOINTS_OID 0x02030409 //!< PMR_DRAWIMAGEPOINTS PseudoObject type.
#define U_PMR_DRAWLINES_OID 0x02030410 //!< PMR_DRAWLINES PseudoObject type.
#define U_PMR_DRAWPATH_OID 0x02030411 //!< PMR_DRAWPATH PseudoObject type.
#define U_PMR_DRAWPIE_OID 0x02030412 //!< PMR_DRAWPIE PseudoObject type.
#define U_PMR_DRAWRECTS_OID 0x02030413 //!< PMR_DRAWRECTS PseudoObject type.
#define U_PMR_DRAWSTRING_OID 0x02030414 //!< PMR_DRAWSTRING PseudoObject type.
#define U_PMR_FILLCLOSEDCURVE_OID 0x02030415 //!< PMR_FILLCLOSEDCURVE PseudoObject type.
#define U_PMR_FILLELLIPSE_OID 0x02030416 //!< PMR_FILLELLIPSE PseudoObject type.
#define U_PMR_FILLPATH_OID 0x02030417 //!< PMR_FILLPATH PseudoObject type.
#define U_PMR_FILLPIE_OID 0x02030418 //!< PMR_FILLPIE PseudoObject type.
#define U_PMR_FILLPOLYGON_OID 0x02030419 //!< PMR_FILLPOLYGON PseudoObject type.
#define U_PMR_FILLRECTS_OID 0x02030420 //!< PMR_FILLRECTS PseudoObject type.
#define U_PMR_FILLREGION_OID 0x02030421 //!< PMR_FILLREGION PseudoObject type.
#define U_PMR_OBJECT_OID 0x02030501 //!< PMR_OBJECT PseudoObject type.
#define U_PMR_SERIALIZABLEOBJECT_OID 0x02030502 //!< PMR_SERIALIZABLEOBJECT PseudoObject type.
#define U_PMR_SETANTIALIASMODE_OID 0x02030601 //!< PMR_SETANTIALIASMODE PseudoObject type.
#define U_PMR_SETCOMPOSITINGMODE_OID 0x02030602 //!< PMR_SETCOMPOSITINGMODE PseudoObject type.
#define U_PMR_SETCOMPOSITINGQUALITY_OID 0x02030603 //!< PMR_SETCOMPOSITINGQUALITY PseudoObject type.
#define U_PMR_SETINTERPOLATIONMODE_OID 0x02030604 //!< PMR_SETINTERPOLATIONMODE PseudoObject type.
#define U_PMR_SETPIXELOFFSETMODE_OID 0x02030605 //!< PMR_SETPIXELOFFSETMODE PseudoObject type.
#define U_PMR_SETRENDERINGORIGIN_OID 0x02030606 //!< PMR_SETRENDERINGORIGIN PseudoObject type.
#define U_PMR_SETTEXTCONTRAST_OID 0x02030607 //!< PMR_SETTEXTCONTRAST PseudoObject type.
#define U_PMR_SETTEXTRENDERINGHINT_OID 0x02030608 //!< PMR_SETTEXTRENDERINGHINT PseudoObject type.
#define U_PMR_BEGINCONTAINER_OID 0x02030701 //!< PMR_BEGINCONTAINER PseudoObject type.
#define U_PMR_BEGINCONTAINERNOPARAMS_OID 0x02030702 //!< PMR_BEGINCONTAINERNOPARAMS PseudoObject type.
#define U_PMR_ENDCONTAINER_OID 0x02030703 //!< PMR_ENDCONTAINER PseudoObject type.
#define U_PMR_RESTORE_OID 0x02030704 //!< PMR_RESTORE PseudoObject type.
#define U_PMR_SAVE_OID 0x02030705 //!< PMR_SAVE PseudoObject type.
#define U_PMR_SETTSCLIP_OID 0x02030801 //!< PMR_SETTSCLIP PseudoObject type.
#define U_PMR_SETTSGRAPHICS_OID 0x02030802 //!< PMR_SETTSGRAPHICS PseudoObject type.
#define U_PMR_MULTIPLYWORLDTRANSFORM_OID 0x02030901 //!< PMR_MULTIPLYWORLDTRANSFORM PseudoObject type.
#define U_PMR_RESETWORLDTRANSFORM_OID 0x02030902 //!< PMR_RESETWORLDTRANSFORM PseudoObject type.
#define U_PMR_ROTATEWORLDTRANSFORM_OID 0x02030903 //!< PMR_ROTATEWORLDTRANSFORM PseudoObject type.
#define U_PMR_SCALEWORLDTRANSFORM_OID 0x02030904 //!< PMR_SCALEWORLDTRANSFORM PseudoObject type.
#define U_PMR_SETPAGETRANSFORM_OID 0x02030905 //!< PMR_SETPAGETRANSFORM PseudoObject type.
#define U_PMR_SETWORLDTRANSFORM_OID 0x02030906 //!< PMR_SETWORLDTRANSFORM PseudoObject type.
#define U_PMR_TRANSLATEWORLDTRANSFORM_OID 0x02030907 //!< PMR_TRANSLATEWORLDTRANSFORM PseudoObject type.
#define U_PMR_TRANSLATEWORLDTRANSFORM_OID 0x02030907 //!< PMR_TRANSLATEWORLDTRANSFORM PseudoObject type.
#define U_PMR_CMN_HDR_OID 0x40000000 //!< PMR_CMN_HDR PseudoObject type.
#define U_PMF_4NUM_OID 0x40000001 //!< PMF_4NUM PseudoObject type. PseudoObject contains a 4 unsigned int in EMF+ file byte order, used in some contexts to indicate an object index number..
#define U_PMF_RAW_OID 0x40000002 //!< PMF_RAW PseudoObject type. Raw data: no preceding elements, data has native endianness.
#define U_PMF_ARRAY_OID 0x80000000 //!< PMF_ARRAY PseudoObject type modifier. PseudoObject contains an array of the data type revealed when this bit is cleared.
#define U_PMF_MASK_OID 0x7FFFFFFF //!< PMF_MASK. Select PseudoObject data type without regard to PMF_ARRAY.
/** @} */
/** \defgroup U_PMF_BDT_ PMF BitmapDataType Enumeration
For
EMF+ manual 2.1.1.2, Microsoft name: BitmapDataType Enumeration (U_BDT_*)
@{
*/
#define U_BDT_Pixel 0x00 //!< Data is a bitmap.
#define U_BDT_Compressed 0x01 //!< Data is a compressed bitmap (like a PNG).
/** @} */
/** \defgroup U_PMF_BT_ PMF BrushType Enumeration
For
EMF+ manual 2.1.1.3, Microsoft name: BrushType Enumeration (U_BT_*)
@{
*/
#define U_BT_SolidColor 0x00 //!< Solid Color brush.
#define U_BT_HatchFill 0x01 //!< Hatch Fill brush.
#define U_BT_TextureFill 0x02 //!< Texture Fill brush.
#define U_BT_PathGradient 0x03 //!< Path Gradient brush.
#define U_BT_LinearGradient 0x04 //!< Linear Gradient brush.
/** @} */
/** \defgroup U_PMF_CM_ PMF CombineMode Enumeration
For
EMF+ manual 2.1.1.4, Microsoft name: CombineMode Enumeration (U_CM_*)
@{
*/
#define U_CM_Replace 0x00 //!< Region becomes new region.
#define U_CM_Intersect 0x01 //!< Region becomes intersection of existing region and new region.
#define U_CM_Union 0x02 //!< Region becomes union of existing and new regions.
#define U_CM_XOR 0x03 //!< Region becomes XOR of existing and new regions.
#define U_CM_Exclude 0x04 //!< Region becomes part of existing region not in new region.
#define U_CM_Complement 0x05 //!< Region becomes part of new region not in existing region.
/** @} */
/** \defgroup U_PMF_CMS_ PMF CompositingMode Enumeration
For
EMF+ manual 2.1.1.5, Microsoft name: CompositingMode Enumeration (U_CMS_* [S==Source])
@{
*/
#define U_CMS_Over 0x00 //!< Source is alpha blends with destination.
#define U_CMS_Copy 0x01 //!< Source over writes destination.
/** @} */
/** \defgroup U_PMF_CQ_ PMF CompositingQuality Enumeration
For
EMF+ manual 2.1.1.6, Microsoft name: CompositingQuality Enumeration (U_CQ_*)
@{
*/
#define U_CQ_Default 0x01 //!< Default compositing quality
#define U_CQ_HighSpeed 0x02 //!< High Speed compositing quality
#define U_CQ_HighQuality 0x03 //!< High Quality compositing quality
#define U_CQ_GammaCorrected 0x04 //!< Gamma Corrected compositing quality
#define U_CQ_AssumeLinear 0x05 //!< Assume Linear compositing quality
/** @} */
/** \defgroup U_PMF_CA_ PMF CurveAdjustments Enumeration
For
EMF+ manual 2.1.1.7, Microsoft name: CurveAdjustments Enumeration (U_CA_*)
@{
*/
#define U_CA_Exposure 0x00 //!< Exposure color curve adjustment
#define U_CA_Density 0x01 //!< Density color curve adjustment
#define U_CA_Contrast 0x02 //!< Contrast color curve adjustment
#define U_CA_Highlight 0x03 //!< Highlight color curve adjustment
#define U_CA_Shadow 0x04 //!< Shadow color curve adjustment
#define U_CA_Midtone 0x05 //!< Midtone color curve adjustment
#define U_CA_WhiteSaturation 0x06 //!< White Saturation color curve adjustment
#define U_CA_BlackSaturation 0x07 //!< Black Saturation color curve adjustment
/** @} */
/** \defgroup U_PMF_CC_ PMF CurveChannel Enumeration
For
EMF+ manual 2.1.1.8, Microsoft name: CurveChannel Enumeration (U_CC_*)
@{
*/
#define U_CC_All 0x00 //!< All color channels
#define U_CC_Red 0x01 //!< Red color channel
#define U_CC_Green 0x02 //!< Green color channel
#define U_CC_Blue 0x03 //!< Blue color channel
/** @} */
/** \defgroup U_PMF_CLCDT_ PMF CustomLineCapDataType Enumeration
For
EMF+ manual 2.1.1.9, Microsoft name: CustomLineCapDataType Enumeration (U_CLCDT_*)
@{
*/
#define U_CLCDT_Default 0x00 //!< Default custom line cap
#define U_CLCDT_AdjustableArrow 0x01 //!< Adjustable Arrow custom line cap
/** @} */
/** \defgroup U_PMF_DLCT_ PMF DashedLineCapType Enumeration
For
EMF+ manual 2.1.1.10, Microsoft name: DashedLineCapType Enumeration (U_DLCT_*)
@{
*/
#define U_DLCT_Flat 0x00 //!< Flat dashed line cap
#define U_DLCT_Round 0x02 //!< Round dashed line cap
#define U_DLCT_Triangle 0x03 //!< Triangle dashed line cap
/** @} */
/** \defgroup U_PMF_FT_ PMF FilterType Enumeration
For
EMF+ manual 2.1.1.11, Microsoft name: FilterType Enumeration (U_FT_*)
@{
*/
#define U_FT_None 0x00 //!< No filtering
#define U_FT_Point 0x01 //!< Point filtering
#define U_FT_Linear 0x02 //!< Linear filtering
#define U_FT_Triangle 0x03 //!< Triangle filtering
#define U_FT_Box 0x04 //!< Box filtering
#define U_FT_PyramidalQuad 0x06 //!< Pyramidal Quad filtering
#define U_FT_GaussianQuad 0x07 //!< Gaussian Quad filtering
/** @} */
/** \defgroup U_PMF_GV_ PMF GraphicsVersion Enumeration
For
EMF+ manual 2.1.1.12, Microsoft name: GraphicsVersion Enumeration (U_GV_*)
@{
*/
#define U_GV_1 0x01 //!< 1 graphics version
#define U_GV_1_1 0x02 //!< 1.1 graphics version
/** @} */
/** \defgroup U_PMF_HSP_ PMF HatchStyle Enumeration
For
EMF+ manual 2.1.1.13, Microsoft name: HatchStyle Enumeration (U_HSP_* [U_HS_ already used for EMF])
@{
*/
#define U_HSP_Horizontal 0x00000000 //!< Horizontal
#define U_HSP_Vertical 0x00000001 //!< Vertical
#define U_HSP_ForwardDiagonal 0x00000002 //!< Forward Diagonal
#define U_HSP_BackwardDiagonal 0x00000003 //!< Backward Diagonal
#define U_HSP_LargeGrid 0x00000004 //!< Large Grid
#define U_HSP_DiagonalCross 0x00000005 //!< Diagonal Cross
#define U_HSP_05Percent 0x00000006 //!< 05 Percent
#define U_HSP_10Percent 0x00000007 //!< 10 Percent
#define U_HSP_20Percent 0x00000008 //!< 20 Percent
#define U_HSP_25Percent 0x00000009 //!< 25 Percent
#define U_HSP_30Percent 0x0000000A //!< 30 Percent
#define U_HSP_40Percent 0x0000000B //!< 40 Percent
#define U_HSP_50Percent 0x0000000C //!< 50 Percent
#define U_HSP_60Percent 0x0000000D //!< 60 Percent
#define U_HSP_70Percent 0x0000000E //!< 70 Percent
#define U_HSP_75Percent 0x0000000F //!< 75 Percent
#define U_HSP_80Percent 0x00000010 //!< 80 Percent
#define U_HSP_90Percent 0x00000011 //!< 90 Percent
#define U_HSP_LightDownwardDiagonal 0x00000012 //!< Light Downward Diagonal
#define U_HSP_LightUpwardDiagonal 0x00000013 //!< Light Upward Diagonal
#define U_HSP_DarkDownwardDiagonal 0x00000014 //!< Dark Downward Diagonal
#define U_HSP_DarkUpwardDiagonal 0x00000015 //!< Dark Upward Diagonal
#define U_HSP_WideDownwardDiagonal 0x00000016 //!< Wide Downward Diagonal
#define U_HSP_WideUpwardDiagonal 0x00000017 //!< Wide Upward Diagonal
#define U_HSP_LightVertical 0x00000018 //!< Light Vertical
#define U_HSP_LightHorizontal 0x00000019 //!< Light Horizontal
#define U_HSP_NarrowVertical 0x0000001A //!< Narrow Vertical
#define U_HSP_NarrowHorizontal 0x0000001B //!< Narrow Horizontal
#define U_HSP_DarkVertical 0x0000001C //!< Dark Vertical
#define U_HSP_DarkHorizontal 0x0000001D //!< Dark Horizontal
#define U_HSP_DashedDownwardDiagonal 0x0000001E //!< Dashed Downward Diagonal
#define U_HSP_DashedUpwardDiagonal 0x0000001F //!< Dashed Upward Diagonal
#define U_HSP_DashedHorizontal 0x00000020 //!< Dashed Horizontal
#define U_HSP_DashedVertical 0x00000021 //!< Dashed Vertical
#define U_HSP_SmallConfetti 0x00000022 //!< Small Confetti
#define U_HSP_LargeConfetti 0x00000023 //!< LargeC onfetti
#define U_HSP_ZigZag 0x00000024 //!< Zig Zag
#define U_HSP_Wave 0x00000025 //!< Wave
#define U_HSP_DiagonalBrick 0x00000026 //!< Diagonal Brick
#define U_HSP_HorizontalBrick 0x00000027 //!< Horizontal Brick
#define U_HSP_Weave 0x00000028 //!< Weave
#define U_HSP_Plaid 0x00000029 //!< Plaid
#define U_HSP_Divot 0x0000002A //!< Divot
#define U_HSP_DottedGrid 0x0000002B //!< DottedGrid
#define U_HSP_DottedDiamond 0x0000002C //!< DottedDiamond
#define U_HSP_Shingle 0x0000002D //!< Shingle
#define U_HSP_Trellis 0x0000002E //!< Trellis
#define U_HSP_Sphere 0x0000002F //!< Sphere
#define U_HSP_SmallGrid 0x00000030 //!< Small Grid
#define U_HSP_SmallCheckerBoard 0x00000031 //!< Small Checker Board
#define U_HSP_LargeCheckerBoard 0x00000032 //!< Large Checker Board
#define U_HSP_OutlinedDiamond 0x00000033 //!< Outlined Diamond
#define U_HSP_SolidDiamond 0x00000034 //!< Solid Diamond
/** @} */
/** \defgroup U_PMF_HKP_ PMF HotkeyPrefix Enumeration
For
EMF+ manual 2.1.1.14, Microsoft name: HotkeyPrefix Enumeration (U_HKP_*)
@{
*/
#define U_HKP_None 0x00 //!< No hot key prefix
#define U_HKP_Show 0x01 //!< Show hot key prefix
#define U_HKP_Hide 0x02 //!< Hide hot key prefix
/** @} */
/** \defgroup U_PMF_IDT_ PMF ImageDataType Enumeration
For
EMF+ manual 2.1.1.15, Microsoft name: ImageDataType Enumeration (U_IDT_*)
@{
*/
#define U_IDT_Unknown 0x00 //!< Unknown image data type
#define U_IDT_Bitmap 0x01 //!< Bitmap image data type
#define U_IDT_Metafile 0x02 //!< Metafile image data type
/** @} */
/** \defgroup U_PMF_IM_ PMF InterpolationMode Enumeration
For
EMF+ manual 2.1.1.16, Microsoft name: InterpolationMode Enumeration (U_IM_*)
@{
*/
#define U_IM_Default 0x00 //!< Default interpolation mode
#define U_IM_LowQuality 0x01 //!< Low Quality interpolation mode
#define U_IM_HighQuality 0x02 //!< High Quality interpolation mode
#define U_IM_Bilinear 0x03 //!< Bilinear interpolation mode
#define U_IM_Bicubic 0x04 //!< Bicubic interpolation mode
#define U_IM_NearestNeighbor 0x05 //!< Nearest Neighbor interpolation mode
#define U_IM_HighQualityBilinear 0x06 //!< High Quality Bilinear interpolation mode
#define U_IM_HighQualityBicubic 0x07 //!< High Quality Bicubic interpolation mode
/** @} */
/** \defgroup U_PMF_LID_ PMF LanguageIdentifier Enumeration
For
EMF+ manual 2.1.1.17, Microsoft name: LanguageIdentifier Enumeration (U_LID_*)
@{
*/
#define U_LID_LANG_NEUTRAL 0x0000 //!< LANG_NEUTRAL
#define U_LID_zh_CHS 0x0004 //!< zh_CHS
#define U_LID_LANG_INVARIANT 0x007F //!< LANG_INVARIANT
#define U_LID_LANG_NEUTRAL_USER_DEFAULT 0x0400 //!< LANG_NEUTRAL_USER_DEFAULT
#define U_LID_ar_SA 0x0401 //!< ar_SA
#define U_LID_bg_BG 0x0402 //!< bg_BG
#define U_LID_ca_ES 0x0403 //!< ca_ES
#define U_LID_zh_CHT 0x0404 //!< zh_CHT
#define U_LID_cs_CZ 0x0405 //!< cs_CZ
#define U_LID_da_DK 0x0406 //!< da_DK
#define U_LID_de_DE 0x0407 //!< de_DE
#define U_LID_el_GR 0x0408 //!< el_GR
#define U_LID_en_US 0x0409 //!< en_US
#define U_LID_es_Tradnl_ES 0x040A //!< es_Tradnl_ES
#define U_LID_fi_FI 0x040B //!< fi_FI
#define U_LID_fr_FR 0x040C //!< fr_FR
#define U_LID_he_IL 0x040D //!< he_IL
#define U_LID_hu_HU 0x040E //!< hu_HU
#define U_LID_is_IS 0x040F //!< is_IS
#define U_LID_it_IT 0x0410 //!< it_IT
#define U_LID_ja_JA 0x0411 //!< ja_JA
#define U_LID_ko_KR 0x0412 //!< ko_KR
#define U_LID_nl_NL 0x0413 //!< nl_NL
#define U_LID_nb_NO 0x0414 //!< nb_NO
#define U_LID_pl_PL 0x0415 //!< pl_PL
#define U_LID_pt_BR 0x0416 //!< pt_BR
#define U_LID_rm_CH 0x0417 //!< rm_CH
#define U_LID_ro_RO 0x0418 //!< ro_RO
#define U_LID_ru_RU 0x0419 //!< ru_RU
#define U_LID_hr_HR 0x041A //!< hr_HR
#define U_LID_sk_SK 0x041B //!< sk_SK
#define U_LID_sq_AL 0x041C //!< sq_AL
#define U_LID_sv_SE 0x041D //!< sv_SE
#define U_LID_th_TH 0x041E //!< th_TH
#define U_LID_tr_TR 0x041F //!< tr_TR
#define U_LID_ur_PK 0x0420 //!< ur_PK
#define U_LID_id_ID 0x0421 //!< id_ID
#define U_LID_uk_UA 0x0422 //!< uk_UA
#define U_LID_be_BY 0x0423 //!< be_BY
#define U_LID_sl_SI 0x0424 //!< sl_SI
#define U_LID_et_EE 0x0425 //!< et_EE
#define U_LID_lv_LV 0x0426 //!< lv_LV
#define U_LID_lt_LT 0x0427 //!< lt_LT
#define U_LID_tg_TJ 0x0428 //!< tg_TJ
#define U_LID_fa_IR 0x0429 //!< fa_IR
#define U_LID_vi_VN 0x042A //!< vi_VN
#define U_LID_hy_AM 0x042B //!< hy_AM
#define U_LID_az_Latn_AZ 0x042C //!< az_Latn_AZ
#define U_LID_eu_ES 0x042D //!< eu_ES
#define U_LID_wen_DE 0x042E //!< wen_DE
#define U_LID_mk_MK 0x042F //!< mk_MK
#define U_LID_st_ZA 0x0430 //!< st_ZA
#define U_LID_tn_ZA 0x0432 //!< tn_ZA
#define U_LID_xh_ZA 0x0434 //!< xh_ZA
#define U_LID_zu_ZA 0x0435 //!< zu_ZA
#define U_LID_af_ZA 0x0436 //!< af_ZA
#define U_LID_ka_GE 0x0437 //!< ka_GE
#define U_LID_fa_FA 0x0438 //!< fa_FA
#define U_LID_hi_IN 0x0439 //!< hi_IN
#define U_LID_mt_MT 0x043A //!< mt_MT
#define U_LID_se_NO 0x043B //!< se_NO
#define U_LID_ga_GB 0x043C //!< ga_GB
#define U_LID_ms_MY 0x043E //!< ms_MY
#define U_LID_kk_KZ 0x043F //!< kk_KZ
#define U_LID_ky_KG 0x0440 //!< ky_KG
#define U_LID_sw_KE 0x0441 //!< sw_KE
#define U_LID_tk_TM 0x0442 //!< tk_TM
#define U_LID_uz_Latn_UZ 0x0443 //!< uz_Latn_UZ
#define U_LID_tt_Ru 0x0444 //!< tt_Ru
#define U_LID_bn_IN 0x0445 //!< bn_IN
#define U_LID_pa_IN 0x0446 //!< pa_IN
#define U_LID_gu_IN 0x0447 //!< gu_IN
#define U_LID_or_IN 0x0448 //!< or_IN
#define U_LID_ta_IN 0x0449 //!< ta_IN
#define U_LID_te_IN 0x044A //!< te_IN
#define U_LID_kn_IN 0x044B //!< kn_IN
#define U_LID_ml_IN 0x044C //!< ml_IN
#define U_LID_as_IN 0x044D //!< as_IN
#define U_LID_mr_IN 0x044E //!< mr_IN
#define U_LID_sa_IN 0x044F //!< sa_IN
#define U_LID_mn_MN 0x0450 //!< mn_MN
#define U_LID_bo_CN 0x0451 //!< bo_CN
#define U_LID_cy_GB 0x0452 //!< cy_GB
#define U_LID_km_KH 0x0453 //!< km_KH
#define U_LID_lo_LA 0x0454 //!< lo_LA
#define U_LID_gl_ES 0x0456 //!< gl_ES
#define U_LID_kok_IN 0x0457 //!< kok_IN
#define U_LID_sd_IN 0x0459 //!< sd_IN
#define U_LID_syr_SY 0x045A //!< syr_SY
#define U_LID_si_LK 0x045B //!< si_LK
#define U_LID_iu_Cans_CA 0x045D //!< iu_Cans_CA
#define U_LID_am_ET 0x045E //!< am_ET
#define U_LID_ne_NP 0x0461 //!< ne_NP
#define U_LID_fy_NL 0x0462 //!< fy_NL
#define U_LID_ps_AF 0x0463 //!< ps_AF
#define U_LID_fil_PH 0x0464 //!< fil_PH
#define U_LID_div_MV 0x0465 //!< div_MV
#define U_LID_ha_Latn_NG 0x0468 //!< ha_Latn_NG
#define U_LID_yo_NG 0x046A //!< yo_NG
#define U_LID_quz_BO 0x046B //!< quz_BO
#define U_LID_nzo_ZA 0x046C //!< nzo_ZA
#define U_LID_ba_RU 0x046D //!< ba_RU
#define U_LID_lb_LU 0x046E //!< lb_LU
#define U_LID_kl_GL 0x046F //!< kl_GL
#define U_LID_ig_NG 0x0470 //!< ig_NG
#define U_LID_so_SO 0x0477 //!< so_SO
#define U_LID_ii_CN 0x0478 //!< ii_CN
#define U_LID_arn_CL 0x047A //!< arn_CL
#define U_LID_moh_CA 0x047C //!< moh_CA
#define U_LID_br_FR 0x047E //!< br_FR
#define U_LID_ug_CN 0x0480 //!< ug_CN
#define U_LID_ mi_NZ 0x0481 //!< mi_NZ
#define U_LID_oc_FR 0x0482 //!< oc_FR
#define U_LID_co_FR 0x0483 //!< co_FR
#define U_LID_gsw_FR 0x0484 //!< gsw_FR
#define U_LID_sah_RU 0x0485 //!< sah_RU
#define U_LID_qut_GT 0x0486 //!< qut_GT
#define U_LID_rw_RW 0x0487 //!< rw_RW
#define U_LID_wo_SN 0x0488 //!< wo_SN
#define U_LID_gbz_AF 0x048C //!< gbz_AF
#define U_LID_LANG_NEUTRAL_SYS_DEFAULT 0x0800 //!< LANG_NEUTRAL_SYS_DEFAULT
#define U_LID_ar_IQ 0x0801 //!< ar_IQ
#define U_LID_zh_CN 0x0804 //!< zh_CN
#define U_LID_de_CH 0x0807 //!< de_CH
#define U_LID_en_GB 0x0809 //!< en_GB
#define U_LID_es_MX 0x080A //!< es_MX
#define U_LID_fr_BE 0x080C //!< fr_BE
#define U_LID_it_CH 0x0810 //!< it_CH
#define U_LID_ko_Johab_KR 0x0812 //!< ko_Johab_KR
#define U_LID_nl_BE 0x0813 //!< nl_BE
#define U_LID_nn_NO 0x0814 //!< nn_NO
#define U_LID_pt_PT 0x0816 //!< pt_PT
#define U_LID_sr_Latn_SP 0x081A //!< sr_Latn_SP
#define U_LID_sv_FI 0x081D //!< sv_FI
#define U_LID_ur_IN 0x0820 //!< ur_IN
#define U_LID_lt_C_LT 0x0827 //!< lt_C_LT
#define U_LID_az_Cyrl_AZ 0x082C //!< az_Cyrl_AZ
#define U_LID_wee_DE 0x082E //!< wee_DE
#define U_LID_se_SE 0x083B //!< se_SE
#define U_LID_ga_IE 0x083C //!< ga_IE
#define U_LID_ms_BN 0x083E //!< ms_BN
#define U_LID_uz_Cyrl_UZ 0x0843 //!< uz_Cyrl_UZ
#define U_LID_bn_BD 0x0845 //!< bn_BD
#define U_LID_mn_Mong_CN 0x0850 //!< mn_Mong_CN
#define U_LID_sd_PK 0x0859 //!< sd_PK
#define U_LID_iu_Latn_CA 0x085D //!< iu_Latn_CA
#define U_LID_tzm_Latn_DZ 0x085F //!< tzm_Latn_DZ
#define U_LID_quz_EC 0x086B //!< quz_EC
#define U_LID_LANG_NEUTRAL_CUSTOM_DEFAULT 0x0C00 //!< LANG_NEUTRAL_CUSTOM_DEFAULT
#define U_LID_ar_EG 0x0C01 //!< ar_EG
#define U_LID_zh_HK 0x0C04 //!< zh_HK
#define U_LID_de_AT 0x0C07 //!< de_AT
#define U_LID_en_AU 0x0C09 //!< en_AU
#define U_LID_es_ES 0x0C0A //!< es_ES
#define U_LID_fr_CA 0x0C0C //!< fr_CA
#define U_LID_sr_Cyrl_CS 0x0C1A //!< sr_Cyrl_CS
#define U_LID_se_FI 0x0C3B //!< se_FI
#define U_LID_quz_PE 0x0C6B //!< quz_PE
#define U_LID_LANG_NEUTRAL_CUSTOM 0x1000 //!< LANG_NEUTRAL_CUSTOM
#define U_LID_ar_LY 0x1001 //!< ar_LY
#define U_LID_zh_SG 0x1004 //!< zh_SG
#define U_LID_de_LU 0x1007 //!< de_LU
#define U_LID_en_CA 0x1009 //!< en_CA
#define U_LID_es_GT 0x100A //!< es_GT
#define U_LID_fr_CH 0x100C //!< fr_CH
#define U_LID_hr_BA 0x101A //!< hr_BA
#define U_LID_smj_NO 0x103B //!< smj_NO
#define U_LID_LANG_NEUTRAL_CUSTOM_DEFAULT_MUI 0x1400 //!< LANG_NEUTRAL_CUSTOM_DEFAULT_MUI
#define U_LID_ar_DZ 0x1401 //!< ar_DZ
#define U_LID_zh_MO 0x1404 //!< zh_MO
#define U_LID_de_LI 0x1407 //!< de_LI
#define U_LID_en_NZ 0x1409 //!< en_NZ
#define U_LID_es_CR 0x140A //!< es_CR
#define U_LID_fr_LU 0x140C //!< fr_LU
#define U_LID_bs_Latn_BA 0x141A //!< bs_Latn_BA
#define U_LID_smj_SE 0x143B //!< smj_SE
#define U_LID_ar_MA 0x1801 //!< ar_MA
#define U_LID_en_IE 0x1809 //!< en_IE
#define U_LID_es_PA 0x180A //!< es_PA
#define U_LID_ar_MC 0x180C //!< ar_MC
#define U_LID_sr_Latn_BA 0x181A //!< sr_Latn_BA
#define U_LID_sma_NO 0x183B //!< sma_NO
#define U_LID_ar_TN 0x1C01 //!< ar_TN
#define U_LID_en_ZA 0x1C09 //!< en_ZA
#define U_LID_es_DO 0x1C0A //!< es_DO
#define U_LID_sr_Cyrl_BA 0x1C1A //!< sr_Cyrl_BA
#define U_LID_sma_SE 0x1C3B //!< sma_SE
#define U_LID_ar_OM 0x2001 //!< ar_OM
#define U_LID_el_2_GR 0x2008 //!< el_2_GR
#define U_LID_en_JM 0x2009 //!< en_JM
#define U_LID_es_VE 0x200A //!< es_VE
#define U_LID_bs_Cyrl_BA 0x201A //!< bs_Cyrl_BA
#define U_LID_sms_FI 0x203B //!< sms_FI
#define U_LID_ar_YE 0x2401 //!< ar_YE
#define U_LID_ar_029 0x2409 //!< ar_029
#define U_LID_es_CO 0x240A //!< es_CO
#define U_LID_smn_FI 0x243B //!< smn_FI
#define U_LID_ar_SY 0x2801 //!< ar_SY
#define U_LID_en_BZ 0x2809 //!< en_BZ
#define U_LID_es_PE 0x280A //!< es_PE
#define U_LID_ar_JO 0x2C01 //!< ar_JO
#define U_LID_en_TT 0x2C09 //!< en_TT
#define U_LID_es_AR 0x2C0A //!< es_AR
#define U_LID_ar_LB 0x3001 //!< ar_LB
#define U_LID_en_ZW 0x3009 //!< en_ZW
#define U_LID_es_EC 0x300A //!< es_EC
#define U_LID_ar_KW 0x3401 //!< ar_KW
#define U_LID_en_PH 0x3409 //!< en_PH
#define U_LID_es_CL 0x340A //!< es_CL
#define U_LID_ar_AE 0x3801 //!< ar_AE
#define U_LID_es_UY 0x380A //!< es_UY
#define U_LID_ar_BH 0x3C01 //!< ar_BH
#define U_LID_es_PY 0x3C0A //!< es_PY
#define U_LID_ar_QA 0x4001 //!< ar_QA
#define U_LID_en_IN 0x4009 //!< en_IN
#define U_LID_es_BO 0x400A //!< es_BO
#define U_LID_en_MY 0x4409 //!< en_MY
#define U_LID_es_SV 0x440A //!< es_SV
#define U_LID_en_SG 0x4809 //!< en_SG
#define U_LID_es_HN 0x480A //!< es_HN
#define U_LID_es_NI 0x4C0A //!< es_NI
#define U_LID_es_PR 0x500A //!< es_PR
#define U_LID_es_US 0x540A //!< es_US
#define U_LID_zh_Hant 0x7C04 //!< zh_Hant
#define U_LID_SEC_MASK 0xFB00 //!< Mask for region part of LID
#define U_LID_PRI_MASK 0x03FF //!< MASK for languagepart of LID
/** @} */
/** \defgroup U_PMF_LCT_ PMF LineCapType Enumeration
For
EMF+ manual 2.1.1.18, Microsoft name: LineCapType Enumeration (U_LCT_*)
@{
*/
#define U_LCT_Flat 0x00 //!< Flat line cap
#define U_LCT_Square 0x01 //!< Square line cap
#define U_LCT_Round 0x02 //!< Round line cap
#define U_LCT_Triangle 0x03 //!< Triangle line cap
#define U_LCT_NoAnchor 0x10 //!< No Anchor line cap
#define U_LCT_SquareAnchor 0x11 //!< Square Anchor line cap
#define U_LCT_RoundAnchor 0x12 //!< Round Anchor line cap
#define U_LCT_DiamondAnchor 0x13 //!< Diamond Anchor line cap
#define U_LCT_ArrowAnchor 0x14 //!< Arrow Anchor line cap
#define U_LCT_AnchorMask 0xF0 //!< Ancho rMask line cap
#define U_LCT_Custom 0xFF //!< Custom line cap
/** @} */
/** \defgroup U_PMF_LJT_ PMF LineJoinType Enumeration
For
EMF+ manual 2.1.1.19, Microsoft name: LineJoinType Enumeration (U_LJT_*)
@{
*/
#define U_LJT_Miter 0x00 //!< Miter line join
#define U_LJT_Bevel 0x01 //!< Bevel line join
#define U_LJT_Round 0x02 //!< Round line join
#define U_LJT_MiterClipped 0x03 //!< Miter Clipped line join
/** @} */
/** \defgroup U_PMF_LS_ PMF LineStyle Enumeration
For
EMF+ manual 2.1.1.20, Microsoft name: LineStyle Enumeration (U_LS_*)
@{
*/
#define U_LS_Solid 0x00 //!< Solid line
#define U_LS_Dash 0x01 //!< Dashed line
#define U_LS_Dot 0x02 //!< Dotted line
#define U_LS_DashDot 0x03 //!< Dash Dot line
#define U_LS_DashDotDot 0x04 //!< Dash Dot Dot line
#define U_LS_Custom 0x05 //!< Custom line
/** @} */
/** \defgroup U_PMF_MDT_ PMF MetafileDataType Enumeration
For
EMF+ manual 2.1.1.21, Microsoft name: MetafileDataType Enumeration (U_MDT_*)
@{
*/
#define U_MDT_Wmf 0x01 //!< WMF metafile
#define U_MDT_WmfPlaceable 0x02 //!< WMF placeable metafile
#define U_MDT_Emf 0x03 //!< EMF metafile
#define U_MDT_EmfPlusOnly 0x04 //!< EMF+ single mode metafile
#define U_MDT_EmfPlusDual 0x05 //!< EMF+ dual mode metafile
/** @} */
/** \defgroup U_PMF_OT_ PMF ObjectType Enumeration
For
EMF+ manual 2.1.1.22, Microsoft name: ObjectType Enumeration (U_OT_*)
@{
*/
#define U_OT_Invalid 0x00 //!< Invalid object
#define U_OT_Brush 0x01 //!< Brush object
#define U_OT_Pen 0x02 //!< Pen object
#define U_OT_Path 0x03 //!< Path object
#define U_OT_Region 0x04 //!< Region object
#define U_OT_Image 0x05 //!< Image object
#define U_OT_Font 0x06 //!< Font object
#define U_OT_StringFormat 0x07 //!< StringFormat object
#define U_OT_ImageAttributes 0x08 //!< ImageAttributes object
#define U_OT_CustomLineCap 0x09 //!< CustomLineCap object
/** @} */
/** \defgroup U_PMF_PPT_ PMF PathPointType Enumeration
For
EMF+ manual 2.1.1.23, Microsoft name: PathPointType Enumeration (U_PPT_*)
@{
*/
#define U_PPT_Start 0x00 //!< Start of path
#define U_PPT_Line 0x01 //!< Line path
#define U_PPT_Bezier 0x03 //!< Bezier path
#define U_PPT_MASK 0x0F //!< MASK for bits in flag
/** @} */
/** \defgroup U_PMF_PA_ PMF PenAlignment Enumeration
For
EMF+ manual 2.1.1.24, Microsoft name: PenAlignment Enumeration (U_PA_*)
@{
*/
#define U_PA_Center 0x00 //!< Center pen alignment
#define U_PA_Inset 0x01 //!< Inset pen alignment
#define U_PA_Left 0x02 //!< Left pen alignment
#define U_PA_Outset 0x03 //!< Outset pen alignment
#define U_PA_Right 0x04 //!< Right pen alignment
/** @} */
/** \defgroup U_PMF_PF_ PMF PixelFormat Enumeration
For U_PMF_BITMAP PxFormat field
EMF+ manual 2.1.1.25, Microsoft name: PixelFormat Enumeration (U_PF_*)
Bitmap for this 32 bit value is:
0-9 ignored
10 Set: 32 bit ARGB; Clear: !32 bit ARGB
11 Set: 16 bits/channel; Clear: !16 bits
12 Set: colors premultiplied by alpha; Clear: !premultiplied
13 Set: has Alpha; Clear: !has Alpha
14 Set: Windows GDI supports; Clear: !Windows GDI supports
15 Set: uses LUT; Clear !uses LUT
16-23 = total number of BITS per pixel
24-31 = pixel format enumeration index (0->15)
@{
*/
#define U_PF_Undefined 0x00000000 //!< undefined Pixel Format
#define U_PF_1bppIndexed 0x00030101 //!< monochrome with LUT
#define U_PF_4bppIndexed 0x00030402 //!< 4 bit with LUT
#define U_PF_8bppIndexed 0x00030803 //!< 8 bit with LUT
#define U_PF_16bppGrayScale 0x00101004 //!< 16 bits grey values
#define U_PF_16bppRGB555 0x00021005 //!< 16 bit RGB values (5,5,5,(1 ignored))
#define U_PF_16bppRGB565 0x00021006 //!< 16 bit RGB values (5,6,5)
#define U_PF_16bppARGB1555 0x00061007 //!< 16 bit ARGB values (1 alpha, 5,5,5 colors)
#define U_PF_24bppRGB 0x00021808 //!< 24 bit RGB values (8,8.8)
#define U_PF_32bppRGB 0x00022009 //!< 32 bit RGB value (8,8,8,(8 ignored))
#define U_PF_32bppARGB 0x0026200A //!< 32 bit ARGB values (8 alpha,8,8,8)
#define U_PF_32bppPARGB 0x000E200B //!< 32 bit PARGB values (8,8,8,8, but RGB already multiplied by A)
#define U_PF_48bppRGB 0x0010300C //!< 48 bit RGB (16,16,16)
#define U_PF_64bppARGB 0x0034400D //!< 64 bit ARGB (16 alpha, 16,16,16)
#define U_PF_64bppPARGB 0x001A400E //!< 64 bit PARGB (16,16,16,16, but RGB already multiplied by A)
/** @} */
/** \defgroup U_PMF_POM_ PMF PixelOffsetMode Enumeration
For
EMF+ manual 2.1.1.26, Microsoft name: PixelOffsetMode Enumeration (U_POM_*)
@{
*/
#define U_POM_Default 0x00 //!< center at {0.0,0.0}
#define U_POM_HighSpeed 0x01 //!< center at {0.0,0.0}
#define U_POM_HighQuality 0x02 //!< center at {0.5,0.5}
#define U_POM_None 0x03 //!< center at {0.0,0.0}
#define U_POM_Half 0x04 //!< center at {0.5,0.5}
/** @} */
/** \defgroup U_PMF_RNDT_ PMF RegionNodeDataType Enumeration
For
EMF+ manual 2.1.1.27, Microsoft name: RegionNodeDataType Enumeration (U_RNDT_*)
@{
*/
#define U_RNDT_Kids 0x00000000 //!< One of the next 5 is to be applied
#define U_RNDT_And 0x00000001 //!< AND the child nodes
#define U_RNDT_Or 0x00000002 //!< OR the child nodes
#define U_RNDT_Xor 0x00000003 //!< XOR the child nodes
#define U_RNDT_Exclude 0x00000004 //!< Part of 1st child node not in 2nd child node
#define U_RNDT_Complement 0x00000005 //!< Part of 2nd child node not in 1st child node
#define U_RNDT_Rect 0x10000000 //!< Child node is a rectangle
#define U_RNDT_Path 0x10000001 //!< Child node is a path
#define U_RNDT_Empty 0x10000002 //!< Child node is empty
#define U_RNDT_Infinite 0x10000003 //!< Child node has infinite extent (?)
/** @} */
/** \defgroup U_PMF_SM_ PMF SmoothingMode Enumeration
For
EMF+ manual 2.1.1.28, Microsoft name: SmoothingMode Enumeration (U_SM_*)
@{
*/
#define U_SM_Default 0x00 //!< Default smoothing
#define U_SM_HighSpeed 0x01 //!< High Speed smoothing
#define U_SM_HighQuality 0x02 //!< High Quality smoothing
#define U_SM_None 0x03 //!< No smoothing
#define U_SM_AntiAlias8x4 0x04 //!< Anti Alias 8x4 smoothing
#define U_SM_AntiAlias8x8 0x05 //!< Anti Alias 8x8 smoothing
/** @} */
/** \defgroup U_PMF_SA_ PMF StringAlignment Enumeration
For
EMF+ manual 2.1.1.29, Microsoft name: StringAlignment Enumeration (U_SA_*)
Note, that unlike EMF these are with respect to the bounding rectangle, not to a single point. So
to draw centered text, for instance, U_SA_Center must be used, and the bounding rectangle must also be
centered.
For horizontal positioning of L->R text Near is all the way left in the box, Far is all the way right,
and Center puts the center of the text in the center of the box.
For vertical positioning things are a little strange. Near is a certain distance down from the top, Far is a
certain distance up from the bottom, and center puts the center of the text in the center of the box. The
"certain distance" is not specified in the EMF+ documentation. See the function U_PMR_drawstring() for an
implementation that places text on the baseline.
@{
*/
#define U_SA_Near 0x00 //!< Position near
#define U_SA_Center 0x01 //!< Position center
#define U_SA_Far 0x02 //!< Position far
/** @} */
/** \defgroup U_PMF_SDS_ PMF StringDigitSubstitution Enumeration
For
EMF+ manual 2.1.1.30, Microsoft name: StringDigitSubstitution Enumeration (U_SDS_*)
@{
*/
#define U_SDS_User 0x00 //!< Digit substitution is set by implementation
#define U_SDS_None 0x01 //!< No Digit substitution
#define U_SDS_National 0x02 //!< Digit substitution by official locale
#define U_SDS_Traditional 0x03 //!< Digit substitution by traditional locale
/** @} */
/** \defgroup U_PMF_ST_ PMF StringTrimming Enumeration
For
EMF+ manual 2.1.1.31, Microsoft name: StringTrimming Enumeration (U_ST_*)
@{
*/
#define U_ST_None 0x00 //!< no string trimming
#define U_ST_Character 0x01 //!< Trim at Character
#define U_ST_Word 0x02 //!< Trim at Word
#define U_ST_EllipsisCharacter 0x03 //!< Trim at Ellipsis Character
#define U_ST_EllipsisWord 0x04 //!< Trim at Ellipsis Word
#define U_ST_EllipsisPath 0x05 //!< Trim at Ellipsis Path
/** @} */
/** \defgroup U_PMF_TRH_ PMF TextRenderingHint Enumeration
For
EMF+ manual 2.1.1.32, Microsoft name: TextRenderingHint Enumeration (U_TRH_*)
@{
*/
#define U_TRH_SystemDefault 0x00 //!< System Default
#define U_TRH_SingleBitPerPixelGridFit 0x01 //!< Single Bit Per Pixel Grid Fit
#define U_TRH_SingleBitPerPixel 0x02 //!< Single Bit Per Pixel
#define U_TRH_AntialiasGridFit 0x03 //!< Antialias Grid Fit
#define U_TRH_Antialias 0x04 //!< Antialias