/
IGDIPlusAPI.inc
2004 lines (1389 loc) · 91.4 KB
/
IGDIPlusAPI.inc
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
const WINGDIPDLL = 'gdiplus.dll';
type
GpStatus = TIGPStatus;
GpFillMode = TIGPFillMode;
GpUnit = TIGPUnit;
GpCoordinateSpace = TIGPCoordinateSpace;
GpPointF = PGPPointF;
GpPoint = PGPPoint;
GpRectF = PGPRectF;
GpRect = PGPRect;
GpSizeF = PGPSizeF;
PGPBitmapDataRecord = ^TIGPBitmapDataRecord;
TIGPImageAbort = function ( callbackData: Pointer ) : BOOL; stdcall;
TIGPDrawImageAbort = TIGPImageAbort;
TIGPGetThumbnailImageAbort = TIGPImageAbort;
GpEnumerateMetafileProc = function(recordType: TIGPEmfPlusRecordType; flags: UINT;
dataSize: UINT; data: PBYTE; callbackData: pointer): BOOL; stdcall;
// GDI+ initialization. Must not be called from DllMain - can cause deadlock.
//
// Must be called before GDI+ API's or constructors are used.
//
// token - may not be NULL - accepts a token to be passed in the corresponding
// GdiplusShutdown call.
// input - may not be NULL
// output - may be NULL only if input->SuppressBackgroundThread is FALSE.
function GdiplusStartup( out token: Pointer; input: PGPGdiplusStartupInput;
output: PGPGdiplusStartupOutput): TIGPStatus; stdcall; external WINGDIPDLL;
// GDI+ termination. Must be called before GDI+ is unloaded.
// Must not be called from DllMain - can cause deadlock.
//
// GDI+ API's may not be called after GdiplusShutdown. Pay careful attention
// to GDI+ object destructors.
procedure GdiplusShutdown(token: Pointer); stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// Memory Allocation APIs
//----------------------------------------------------------------------------
function GdipAlloc(size: ULONG): pointer; stdcall; external WINGDIPDLL;
procedure GdipFree(ptr: pointer); stdcall; external WINGDIPDLL;
function GdipCreatePath(brushMode: GPFILLMODE;
out path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreatePath2(v1: GPPOINTF; v2: PBYTE; v3: Integer; v4: GPFILLMODE;
out path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreatePath2I(v1: GPPOINT; v2: PBYTE; v3: Integer; v4: GPFILLMODE;
out path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipClonePath(path: GPPATH;
out clonePath: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipDeletePath(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipResetPath(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPointCount(path: GPPATH;
out count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathTypes(path: GPPATH; types: PBYTE;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathPoints(v1: GPPATH; points: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathPointsI(v1: GPPATH; points: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathFillMode(path: GPPATH;
var fillmode: GPFILLMODE): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathFillMode(path: GPPATH;
fillmode: GPFILLMODE): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathData(path: GPPATH;
pathData: Pointer): GpStatus; stdcall; external WINGDIPDLL;
function GdipStartPathFigure(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipClosePathFigure(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipClosePathFigures(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathMarker(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipClearPathMarkers(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipReversePath(path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathLastPoint(path: GPPATH;
lastPoint: GPPOINTF): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathLine(path: GPPATH;
x1, y1, x2, y2: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathLine2(path: GPPATH; points: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathArc(path: GPPATH; x, y, width, height, startAngle,
sweepAngle: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathBezier(path: GPPATH;
x1, y1, x2, y2, x3, y3, x4, y4: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathBeziers(path: GPPATH; points: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathCurve(path: GPPATH; points: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathCurve2(path: GPPATH; points: GPPOINTF; count: Integer;
tension: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathCurve3(path: GPPATH; points: GPPOINTF; count: Integer;
offset: Integer; numberOfSegments: Integer;
tension: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathClosedCurve(path: GPPATH; points: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathClosedCurve2(path: GPPATH; points: GPPOINTF;
count: Integer; tension: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathRectangle(path: GPPATH; x: Single; y: Single;
width: Single; height: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathRectangles(path: GPPATH; rects: GPRECTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathEllipse(path: GPPATH; x: Single; y: Single;
width: Single; height: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathPie(path: GPPATH; x: Single; y: Single; width: Single;
height: Single; startAngle: Single; sweepAngle: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathPolygon(path: GPPATH; points: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathPath(path: GPPATH; addingPath: GPPATH;
connect: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathString(path: GPPATH; string_: PWCHAR; length: Integer;
family: GPFONTFAMILY; style: Integer; emSize: Single; layoutRect: PGPRectF;
format: GpStringFormat): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathStringI(path: GPPATH; string_: PWCHAR; length: Integer;
family: GPFONTFAMILY; style: Integer; emSize: Single; layoutRect: PGPRect;
format: GpStringFormat): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathLineI(path: GPPATH; x1: Integer; y1: Integer; x2: Integer;
y2: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathLine2I(path: GPPATH; points: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathArcI(path: GPPATH; x: Integer; y: Integer; width: Integer;
height: Integer; startAngle: Single; sweepAngle: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathBezierI(path: GPPATH; x1: Integer; y1: Integer;
x2: Integer; y2: Integer; x3: Integer; y3: Integer; x4: Integer;
y4: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathBeziersI(path: GPPATH; points: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathCurveI(path: GPPATH; points: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathCurve2I(path: GPPATH; points: GPPOINT; count: Integer;
tension: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathCurve3I(path: GPPATH; points: GPPOINT; count: Integer;
offset: Integer; numberOfSegments: Integer;
tension: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathClosedCurveI(path: GPPATH; points: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathClosedCurve2I(path: GPPATH; points: GPPOINT;
count: Integer; tension: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathRectangleI(path: GPPATH; x: Integer; y: Integer;
width: Integer; height: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathRectanglesI(path: GPPATH; rects: GPRECT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathEllipseI(path: GPPATH; x: Integer; y: Integer;
width: Integer; height: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathPieI(path: GPPATH; x: Integer; y: Integer; width: Integer;
height: Integer; startAngle: Single; sweepAngle: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipAddPathPolygonI(path: GPPATH; points: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipFlattenPath(path: GPPATH; matrix: GPMATRIX;
flatness: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipWindingModeOutline(path: GPPATH; matrix: GPMATRIX;
flatness: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipWidenPath(nativePath: GPPATH; pen: GPPEN; matrix: GPMATRIX;
flatness: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipWarpPath(path: GPPATH; matrix: GPMATRIX; points: GPPOINTF;
count: Integer; srcx: Single; srcy: Single; srcwidth: Single;
srcheight: Single; warpMode: TIGPWarpMode; flatness: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipTransformPath(path: GPPATH; matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathWorldBounds(path: GPPATH; bounds: GPRECTF;
matrix: GPMATRIX; pen: GPPEN): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathWorldBoundsI(path: GPPATH; bounds: GPRECT;
matrix: GPMATRIX; pen: GPPEN): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsVisiblePathPoint(path: GPPATH; x: Single; y: Single;
graphics: GpGraphics; out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsVisiblePathPointI(path: GPPATH; x: Integer; y: Integer;
graphics: GpGraphics; out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsOutlineVisiblePathPoint(path: GPPATH; x: Single; y: Single;
pen: GPPEN; graphics: GpGraphics; out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsOutlineVisiblePathPointI(path: GPPATH; x: Integer; y: Integer;
pen: GPPEN; graphics: GpGraphics; out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// PathIterator APIs
//----------------------------------------------------------------------------
function GdipCreatePathIter(out iterator: GpPathIterator;
path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipDeletePathIter(iterator: GpPathIterator): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterNextSubpath(iterator: GpPathIterator;
var resultCount: Integer; var startIndex: Integer; var endIndex: Integer;
out isClosed: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterNextSubpathPath(iterator: GpPathIterator;
var resultCount: Integer; path: GPPATH;
out isClosed: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterNextPathType(iterator: GpPathIterator;
var resultCount: Integer; pathType: PBYTE; var startIndex: Integer;
var endIndex: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterNextMarker(iterator: GpPathIterator;
var resultCount: Integer; var startIndex: Integer;
var endIndex: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterNextMarkerPath(iterator: GpPathIterator;
var resultCount: Integer; path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterGetCount(iterator: GpPathIterator;
out count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterGetSubpathCount(iterator: GpPathIterator;
out count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterIsValid(iterator: GpPathIterator;
out valid: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterHasCurve(iterator: GpPathIterator;
out hasCurve: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterRewind(iterator: GpPathIterator): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterEnumerate(iterator: GpPathIterator;
var resultCount: Integer; points: GPPOINTF; types: PBYTE;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipPathIterCopyData(iterator: GpPathIterator;
var resultCount: Integer; points: GPPOINTF; types: PBYTE;
startIndex: Integer; endIndex: Integer): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// Matrix APIs
//----------------------------------------------------------------------------
function GdipCreateMatrix(out matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateMatrix2(m11: Single; m12: Single; m21: Single; m22: Single;
dx: Single; dy: Single; out matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateMatrix3(rect: GPRECTF; dstplg: GPPOINTF;
out matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateMatrix3I(rect: GPRECT; dstplg: GPPOINT;
out matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipCloneMatrix(matrix: GPMATRIX;
out cloneMatrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipDeleteMatrix(matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetMatrixElements(matrix: GPMATRIX; m11: Single; m12: Single;
m21: Single; m22: Single; dx: Single; dy: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipMultiplyMatrix(matrix: GPMATRIX; matrix2: GPMATRIX;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipTranslateMatrix(matrix: GPMATRIX; offsetX: Single;
offsetY: Single; order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipScaleMatrix(matrix: GPMATRIX; scaleX: Single; scaleY: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipRotateMatrix(matrix: GPMATRIX; angle: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipShearMatrix(matrix: GPMATRIX; shearX: Single; shearY: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipInvertMatrix(matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipTransformMatrixPoints(matrix: GPMATRIX; pts: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipTransformMatrixPointsI(matrix: GPMATRIX; pts: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipVectorTransformMatrixPoints(matrix: GPMATRIX; pts: GPPOINTF;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipVectorTransformMatrixPointsI(matrix: GPMATRIX; pts: GPPOINT;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetMatrixElements(matrix: GPMATRIX;
matrixOut: PSingle): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsMatrixInvertible(matrix: GPMATRIX;
out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsMatrixIdentity(matrix: GPMATRIX;
out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsMatrixEqual(matrix: GPMATRIX; matrix2: GPMATRIX;
out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// Region APIs
//----------------------------------------------------------------------------
function GdipCreateRegion(out region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateRegionRect(rect: GPRECTF;
out region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateRegionRectI(rect: GPRECT;
out region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateRegionPath(path: GPPATH;
out region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateRegionRgnData(regionData: PBYTE; size: Integer;
out region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateRegionHrgn(hRgn: HRGN;
out region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipCloneRegion(region: GpRegion;
out cloneRegion: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipDeleteRegion(region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetInfinite(region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetEmpty(region: GpRegion): GpStatus; stdcall; external WINGDIPDLL;
function GdipCombineRegionRect(region: GpRegion; rect: GPRECTF;
combineMode: TIGPCombineMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipCombineRegionRectI(region: GpRegion; rect: GPRECT;
combineMode: TIGPCombineMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipCombineRegionPath(region: GpRegion; path: GPPATH;
combineMode: TIGPCombineMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipCombineRegionRegion(region: GpRegion; region2: GpRegion;
combineMode: TIGPCombineMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipTranslateRegion(region: GpRegion; dx: Single;
dy: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipTranslateRegionI(region: GpRegion; dx: Integer;
dy: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipTransformRegion(region: GpRegion;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionBounds(region: GpRegion; graphics: GpGraphics;
rect: GPRECTF): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionBoundsI(region: GpRegion; graphics: GpGraphics;
rect: GPRECT): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionHRgn(region: GpRegion; graphics: GpGraphics;
out hRgn: HRGN): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsEmptyRegion(region: GpRegion; graphics: GpGraphics;
out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsInfiniteRegion(region: GpRegion; graphics: GpGraphics;
out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsEqualRegion(region: GpRegion; region2: GpRegion;
graphics: GpGraphics; out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionDataSize(region: GpRegion;
out bufferSize: UINT): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionData(region: GpRegion; buffer: PBYTE;
bufferSize: UINT; sizeFilled: PUINT): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsVisibleRegionPoint(region: GpRegion; x: Single; y: Single;
graphics: GpGraphics; out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsVisibleRegionPointI(region: GpRegion; x: Integer; y: Integer;
graphics: GpGraphics; out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsVisibleRegionRect(region: GpRegion; x: Single; y: Single;
width: Single; height: Single; graphics: GpGraphics;
out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipIsVisibleRegionRectI(region: GpRegion; x: Integer; y: Integer;
width: Integer; height: Integer; graphics: GpGraphics;
out result: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionScansCount(region: GpRegion; out count: UINT;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionScans(region: GpRegion; rects: GPRECTF;
out count: Integer; matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetRegionScansI(region: GpRegion; rects: GPRECT;
out count: Integer; matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// Brush APIs
//----------------------------------------------------------------------------
function GdipCloneBrush(brush: GPBRUSH;
out cloneBrush: GPBRUSH): GpStatus; stdcall; external WINGDIPDLL;
function GdipDeleteBrush(brush: GPBRUSH): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetBrushType(brush: GPBRUSH;
out type_: TIGPBrushType): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// HatchBrush APIs
//----------------------------------------------------------------------------
function GdipCreateHatchBrush(hatchstyle: Integer; forecol: TAlphaColor;
backcol: TAlphaColor; out brush: GPHATCH): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetHatchStyle(brush: GPHATCH;
out hatchstyle: TIGPHatchStyle): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetHatchForegroundColor(brush: GPHATCH;
out forecol: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetHatchBackgroundColor(brush: GPHATCH;
out backcol: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// TextureBrush APIs
//----------------------------------------------------------------------------
function GdipCreateTexture(image: GpImage; wrapmode: TIGPWrapMode;
var texture: GPTEXTURE): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateTexture2(image: GpImage; wrapmode: TIGPWrapMode;
x: Single; y: Single; width: Single; height: Single;
out texture: GPTEXTURE): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateTextureIA(image: GpImage;
imageAttributes: GpImageAttributes; x: Single; y: Single; width: Single;
height: Single; out texture: GPTEXTURE): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateTexture2I(image: GpImage; wrapmode: TIGPWrapMode; x: Integer;
y: Integer; width: Integer; height: Integer;
out texture: GPTEXTURE): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateTextureIAI(image: GpImage;
imageAttributes: GpImageAttributes; x: Integer; y: Integer; width: Integer;
height: Integer; out texture: GPTEXTURE): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetTextureTransform(brush: GPTEXTURE;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetTextureTransform(brush: GPTEXTURE;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipResetTextureTransform(brush: GPTEXTURE): GpStatus; stdcall; external WINGDIPDLL;
function GdipMultiplyTextureTransform(brush: GPTEXTURE; matrix: GPMATRIX;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipTranslateTextureTransform(brush: GPTEXTURE; dx: Single;
dy: Single; order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipScaleTextureTransform(brush: GPTEXTURE; sx: Single; sy: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipRotateTextureTransform(brush: GPTEXTURE; angle: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetTextureWrapMode(brush: GPTEXTURE;
wrapmode: TIGPWrapMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetTextureWrapMode(brush: GPTEXTURE;
var wrapmode: TIGPWrapMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetTextureImage(brush: GPTEXTURE;
out image: GpImage): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// SolidBrush APIs
//----------------------------------------------------------------------------
function GdipCreateSolidFill(color: TAlphaColor;
out brush: GPSOLIDFILL): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetSolidFillColor(brush: GPSOLIDFILL;
color: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetSolidFillColor(brush: GPSOLIDFILL;
out color: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// LineBrush APIs
//----------------------------------------------------------------------------
function GdipCreateLineBrush(point1: GPPOINTF; point2: GPPOINTF; color1: TAlphaColor;
color2: TAlphaColor; wrapMode: TIGPWrapMode;
out lineGradient: GpLineGradient): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateLineBrushI(point1: GPPOINT; point2: GPPOINT; color1: TAlphaColor;
color2: TAlphaColor; wrapMode: TIGPWrapMode;
out lineGradient: GpLineGradient): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateLineBrushFromRect(rect: GPRECTF; color1: TAlphaColor;
color2: TAlphaColor; mode: TIGPLinearGradientMode; wrapMode: TIGPWrapMode;
out lineGradient: GpLineGradient): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateLineBrushFromRectI(rect: GPRECT; color1: TAlphaColor;
color2: TAlphaColor; mode: TIGPLinearGradientMode; wrapMode: TIGPWrapMode;
out lineGradient: GpLineGradient): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateLineBrushFromRectWithAngle(rect: GPRECTF; color1: TAlphaColor;
color2: TAlphaColor; angle: Single; isAngleScalable: Bool; wrapMode: TIGPWrapMode;
out lineGradient: GpLineGradient): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreateLineBrushFromRectWithAngleI(rect: GPRECT; color1: TAlphaColor;
color2: TAlphaColor; angle: Single; isAngleScalable: Bool; wrapMode: TIGPWrapMode;
out lineGradient: GpLineGradient): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLineColors(brush: GpLineGradient; color1: TAlphaColor;
color2: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineColors(brush: GpLineGradient;
colors: PAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineRect(brush: GpLineGradient;
rect: GPRECTF): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineRectI(brush: GpLineGradient;
rect: GPRECT): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLineGammaCorrection(brush: GpLineGradient;
useGammaCorrection: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineGammaCorrection(brush: GpLineGradient;
out useGammaCorrection: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineBlendCount(brush: GpLineGradient;
out count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineBlend(brush: GpLineGradient; blend: PSingle;
positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLineBlend(brush: GpLineGradient; blend: PSingle;
positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLinePresetBlendCount(brush: GpLineGradient;
out count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLinePresetBlend(brush: GpLineGradient; blend: PAlphaColor;
positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLinePresetBlend(brush: GpLineGradient; blend: PAlphaColor;
positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLineSigmaBlend(brush: GpLineGradient; focus: Single;
scale: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLineLinearBlend(brush: GpLineGradient; focus: Single;
scale: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLineWrapMode(brush: GpLineGradient;
wrapmode: TIGPWrapMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineWrapMode(brush: GpLineGradient;
out wrapmode: TIGPWrapMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetLineTransform(brush: GpLineGradient;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetLineTransform(brush: GpLineGradient;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipResetLineTransform(brush: GpLineGradient): GpStatus; stdcall; external WINGDIPDLL;
function GdipMultiplyLineTransform(brush: GpLineGradient; matrix: GPMATRIX;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipTranslateLineTransform(brush: GpLineGradient; dx: Single;
dy: Single; order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipScaleLineTransform(brush: GpLineGradient; sx: Single; sy: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipRotateLineTransform(brush: GpLineGradient; angle: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// PathGradientBrush APIs
//----------------------------------------------------------------------------
function GdipCreatePathGradient(points: GPPOINTF; count: Integer;
wrapMode: TIGPWrapMode; out polyGradient: GPPATHGRADIENT): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreatePathGradientI(points: GPPOINT; count: Integer;
wrapMode: TIGPWrapMode; out polyGradient: GPPATHGRADIENT): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreatePathGradientFromPath(path: GPPATH;
out polyGradient: GPPATHGRADIENT): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientCenterColor(brush: GPPATHGRADIENT;
out colors: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientCenterColor(brush: GPPATHGRADIENT;
colors: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientSurroundColorsWithCount(brush: GPPATHGRADIENT;
color: PAlphaColor; var count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientSurroundColorsWithCount(brush: GPPATHGRADIENT;
color: PAlphaColor; var count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientPath(brush: GPPATHGRADIENT;
path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientPath(brush: GPPATHGRADIENT;
path: GPPATH): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientCenterPoint(brush: GPPATHGRADIENT;
points: GPPOINTF): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientCenterPointI(brush: GPPATHGRADIENT;
points: GPPOINT): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientCenterPoint(brush: GPPATHGRADIENT;
points: GPPOINTF): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientCenterPointI(brush: GPPATHGRADIENT;
points: GPPOINT): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientRect(brush: GPPATHGRADIENT;
rect: GPRECTF): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientRectI(brush: GPPATHGRADIENT;
rect: GPRECT): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientPointCount(brush: GPPATHGRADIENT;
var count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientSurroundColorCount(brush: GPPATHGRADIENT;
var count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientGammaCorrection(brush: GPPATHGRADIENT;
useGammaCorrection: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientGammaCorrection(brush: GPPATHGRADIENT;
var useGammaCorrection: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientBlendCount(brush: GPPATHGRADIENT;
var count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientBlend(brush: GPPATHGRADIENT;
blend: PSingle; positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientBlend(brush: GPPATHGRADIENT;
blend: PSingle; positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientPresetBlendCount(brush: GPPATHGRADIENT;
var count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientPresetBlend(brush: GPPATHGRADIENT;
blend: PAlphaColor; positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientPresetBlend(brush: GPPATHGRADIENT;
blend: PAlphaColor; positions: PSingle; count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientSigmaBlend(brush: GPPATHGRADIENT;
focus: Single; scale: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientLinearBlend(brush: GPPATHGRADIENT;
focus: Single; scale: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientWrapMode(brush: GPPATHGRADIENT;
var wrapmode: TIGPWrapMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientWrapMode(brush: GPPATHGRADIENT;
wrapmode: TIGPWrapMode): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientTransform(brush: GPPATHGRADIENT;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientTransform(brush: GPPATHGRADIENT;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipResetPathGradientTransform(
brush: GPPATHGRADIENT): GpStatus; stdcall; external WINGDIPDLL;
function GdipMultiplyPathGradientTransform(brush: GPPATHGRADIENT;
matrix: GPMATRIX; order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipTranslatePathGradientTransform(brush: GPPATHGRADIENT;
dx: Single; dy: Single; order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipScalePathGradientTransform(brush: GPPATHGRADIENT;
sx: Single; sy: Single; order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipRotatePathGradientTransform(brush: GPPATHGRADIENT;
angle: Single; order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPathGradientFocusScales(brush: GPPATHGRADIENT;
var xScale: Single; var yScale: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPathGradientFocusScales(brush: GPPATHGRADIENT;
xScale: Single; yScale: Single): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// Pen APIs
//----------------------------------------------------------------------------
function GdipCreatePen1(color: TAlphaColor; width: Single; unit_: GPUNIT;
out pen: GPPEN): GpStatus; stdcall; external WINGDIPDLL;
function GdipCreatePen2(brush: GPBRUSH; width: Single; unit_: GPUNIT;
out pen: GPPEN): GpStatus; stdcall; external WINGDIPDLL;
function GdipClonePen(pen: GPPEN; out clonepen: GPPEN): GpStatus; stdcall; external WINGDIPDLL;
function GdipDeletePen(pen: GPPEN): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenWidth(pen: GPPEN; width: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenWidth(pen: GPPEN; out width: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenUnit(pen: GPPEN; unit_: GPUNIT): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenUnit(pen: GPPEN; var unit_: GPUNIT): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenLineCap197819(pen: GPPEN; startCap: TIGPLineCap;
endCap: TIGPLineCap; dashCap: TIGPDashCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenStartCap(pen: GPPEN;
startCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenEndCap(pen: GPPEN; endCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenDashCap197819(pen: GPPEN;
dashCap: TIGPDashCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenStartCap(pen: GPPEN;
out startCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenEndCap(pen: GPPEN;
out endCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenDashCap197819(pen: GPPEN;
out dashCap: TIGPDashCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenLineJoin(pen: GPPEN;
lineJoin: TIGPLineJoin): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenLineJoin(pen: GPPEN;
var lineJoin: TIGPLineJoin): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenCustomStartCap(pen: GPPEN;
customCap: GPCUSTOMLINECAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenCustomStartCap(pen: GPPEN;
out customCap: GPCUSTOMLINECAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenCustomEndCap(pen: GPPEN;
customCap: GPCUSTOMLINECAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenCustomEndCap(pen: GPPEN;
out customCap: GPCUSTOMLINECAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenMiterLimit(pen: GPPEN;
miterLimit: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenMiterLimit(pen: GPPEN;
out miterLimit: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenMode(pen: GPPEN;
penMode: TIGPPenAlignment): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenMode(pen: GPPEN;
var penMode: TIGPPenAlignment): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenTransform(pen: GPPEN;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenTransform(pen: GPPEN;
matrix: GPMATRIX): GpStatus; stdcall; external WINGDIPDLL;
function GdipResetPenTransform(pen: GPPEN): GpStatus; stdcall; external WINGDIPDLL;
function GdipMultiplyPenTransform(pen: GPPEN; matrix: GPMATRIX;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipTranslatePenTransform(pen: GPPEN; dx: Single; dy: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipScalePenTransform(pen: GPPEN; sx: Single; sy: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipRotatePenTransform(pen: GPPEN; angle: Single;
order: TIGPMatrixOrder): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenColor(pen: GPPEN; argb: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenColor(pen: GPPEN; out argb: TAlphaColor): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenBrushFill(pen: GPPEN; brush: GPBRUSH): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenBrushFill(pen: GPPEN;
out brush: GPBRUSH): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenFillType(pen: GPPEN;
out type_: TIGPPenType): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenDashStyle(pen: GPPEN;
out dashstyle: TIGPDashStyle): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenDashStyle(pen: GPPEN;
dashstyle: TIGPDashStyle): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenDashOffset(pen: GPPEN;
out offset: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenDashOffset(pen: GPPEN; offset: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenDashCount(pen: GPPEN;
var count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenDashArray(pen: GPPEN; dash: PSingle;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenDashArray(pen: GPPEN; dash: PSingle;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenCompoundCount(pen: GPPEN;
out count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetPenCompoundArray(pen: GPPEN; dash: PSingle;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetPenCompoundArray(pen: GPPEN; dash: PSingle;
count: Integer): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// CustomLineCap APIs
//----------------------------------------------------------------------------
function GdipCreateCustomLineCap(fillPath: GPPATH; strokePath: GPPATH;
baseCap: TIGPLineCap; baseInset: Single;
out customCap: GPCUSTOMLINECAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipDeleteCustomLineCap(
customCap: GPCUSTOMLINECAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipCloneCustomLineCap(customCap: GPCUSTOMLINECAP;
out clonedCap: GPCUSTOMLINECAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetCustomLineCapType(customCap: GPCUSTOMLINECAP;
var capType: TIGPCustomLineCapType): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetCustomLineCapStrokeCaps(customCap: GPCUSTOMLINECAP;
startCap: TIGPLineCap; endCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetCustomLineCapStrokeCaps(customCap: GPCUSTOMLINECAP;
var startCap: TIGPLineCap; var endCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetCustomLineCapStrokeJoin(customCap: GPCUSTOMLINECAP;
lineJoin: TIGPLineJoin): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetCustomLineCapStrokeJoin(customCap: GPCUSTOMLINECAP;
var lineJoin: TIGPLineJoin): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetCustomLineCapBaseCap(customCap: GPCUSTOMLINECAP;
baseCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetCustomLineCapBaseCap(customCap: GPCUSTOMLINECAP;
var baseCap: TIGPLineCap): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetCustomLineCapBaseInset(customCap: GPCUSTOMLINECAP;
inset: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetCustomLineCapBaseInset(customCap: GPCUSTOMLINECAP;
var inset: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetCustomLineCapWidthScale(customCap: GPCUSTOMLINECAP;
widthScale: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetCustomLineCapWidthScale(customCap: GPCUSTOMLINECAP;
var widthScale: Single): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// AdjustableArrowCap APIs
//----------------------------------------------------------------------------
function GdipCreateAdjustableArrowCap(height: Single;
width: Single;
isFilled: Bool;
out cap: GPADJUSTABLEARROWCAP): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetAdjustableArrowCapHeight(cap: GPADJUSTABLEARROWCAP;
height: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetAdjustableArrowCapHeight(cap: GPADJUSTABLEARROWCAP;
var height: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetAdjustableArrowCapWidth(cap: GPADJUSTABLEARROWCAP;
width: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetAdjustableArrowCapWidth(cap: GPADJUSTABLEARROWCAP;
var width: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetAdjustableArrowCapMiddleInset(cap: GPADJUSTABLEARROWCAP;
middleInset: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetAdjustableArrowCapMiddleInset(cap: GPADJUSTABLEARROWCAP;
var middleInset: Single): GpStatus; stdcall; external WINGDIPDLL;
function GdipSetAdjustableArrowCapFillState(cap: GPADJUSTABLEARROWCAP;
fillState: Bool): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetAdjustableArrowCapFillState(cap: GPADJUSTABLEARROWCAP;
var fillState: Bool): GpStatus; stdcall; external WINGDIPDLL;
//----------------------------------------------------------------------------
// Image APIs
//----------------------------------------------------------------------------
function GdipLoadImageFromStream(stream: ISTREAM;
out image: GpImage): GpStatus; stdcall; external WINGDIPDLL;
function GdipLoadImageFromFile(filename: PWCHAR;
out image: GpImage): GpStatus; stdcall; external WINGDIPDLL;
function GdipLoadImageFromStreamICM(stream: ISTREAM;
out image: GpImage): GpStatus; stdcall; external WINGDIPDLL;
function GdipLoadImageFromFileICM(filename: PWCHAR;
out image: GpImage): GpStatus; stdcall; external WINGDIPDLL;
function GdipCloneImage(image: GpImage;
out cloneImage: GpImage): GpStatus; stdcall; external WINGDIPDLL;
function GdipDisposeImage(image: GpImage): GpStatus; stdcall; external WINGDIPDLL;
function GdipSaveImageToFile(image: GpImage;
filename: PWCHAR;
clsidEncoder: PGUID;
encoderParams: PGPEncoderParameters): GpStatus; stdcall; external WINGDIPDLL;
function GdipSaveImageToStream(image: GpImage;
stream: ISTREAM;
clsidEncoder: PGUID;
encoderParams: PGPEncoderParameters): GpStatus; stdcall; external WINGDIPDLL;
function GdipSaveAdd(image: GpImage;
encoderParams: PGPEncoderParameters): GpStatus; stdcall; external WINGDIPDLL;
function GdipSaveAddImage(image: GpImage;
newImage: GpImage;
encoderParams: PGPEncoderParameters): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetImageGraphicsContext(image: GpImage;
out graphics: GpGraphics): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetImageBounds(image: GpImage;
srcRect: GPRECTF;
var srcUnit: GPUNIT): GpStatus; stdcall; external WINGDIPDLL;
function GdipGetImageDimension(image: GpImage;
var width: Single;
var height: Single): GpStatus; stdcall; external WINGDIPDLL;