forked from FMXExpress/ios-object-pascal-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiOSapi.CoreGraphics.pas
1820 lines (1717 loc) · 87.6 KB
/
iOSapi.CoreGraphics.pas
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
{ *********************************************************** }
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2012-2014 Embarcadero Technologies, Inc. }
{ }
{ *********************************************************** }
//
// Delphi-Objective-C Bridge
// Interfaces for Cocoa framework CoreGraphics
//
unit iOSapi.CoreGraphics;
interface
uses
Macapi.CoreFoundation,
Macapi.CoreServices,
Macapi.Dispatch,
Macapi.Foundation,
Macapi.Mach,
Macapi.ObjCRuntime,
Macapi.ObjectiveC,
Macapi.QuartzCore,
iOSapi.CocoaTypes,
iOSapi.Foundation;
const
CGRectMinXEdge = 0;
CGRectMinYEdge = 1;
CGRectMaxXEdge = 2;
CGRectMaxYEdge = 3;
kCGRenderingIntentDefault = 0;
kCGRenderingIntentAbsoluteColorimetric = 1;
kCGRenderingIntentRelativeColorimetric = 2;
kCGRenderingIntentPerceptual = 3;
kCGRenderingIntentSaturation = 4;
kCGColorSpaceModelUnknown = -1;
kCGColorSpaceModelMonochrome = 0;
kCGColorSpaceModelRGB = 1;
kCGColorSpaceModelCMYK = 2;
kCGColorSpaceModelLab = 3;
kCGColorSpaceModelDeviceN = 4;
kCGColorSpaceModelIndexed = 5;
kCGColorSpaceModelPattern = 6;
kCGPatternTilingNoDistortion = 0;
kCGPatternTilingConstantSpacingMinimalDistortion = 1;
kCGPatternTilingConstantSpacing = 2;
kCGFontPostScriptFormatType1 = 1;
kCGFontPostScriptFormatType3 = 3;
kCGFontPostScriptFormatType42 = 42;
CGGlyphMin = 0;
CGGlyphMax = 1;
kCGGradientDrawsBeforeStartLocation = (1 shl 0);
kCGGradientDrawsAfterEndLocation = (1 shl 1);
kCGImageAlphaNone = 0;
kCGImageAlphaPremultipliedLast = 1;
kCGImageAlphaPremultipliedFirst = 2;
kCGImageAlphaLast = 3;
kCGImageAlphaFirst = 4;
kCGImageAlphaNoneSkipLast = 5;
kCGImageAlphaNoneSkipFirst = 6;
kCGImageAlphaOnly = 7;
kCGBitmapAlphaInfoMask = 31;
kCGBitmapFloatInfoMask = 3840;
kCGBitmapFloatComponents = (1 shl 8);
kCGBitmapByteOrderMask = 28672;
kCGBitmapByteOrderDefault = (0 shl 12);
kCGBitmapByteOrder16Little = (1 shl 12);
kCGBitmapByteOrder32Little = (2 shl 12);
kCGBitmapByteOrder16Big = (3 shl 12);
kCGBitmapByteOrder32Big = (4 shl 12);
kCGLineJoinMiter = 0;
kCGLineJoinRound = 1;
kCGLineJoinBevel = 2;
kCGLineCapButt = 0;
kCGLineCapRound = 1;
kCGLineCapSquare = 2;
kCGPathElementMoveToPoint = 0;
kCGPathElementAddLineToPoint = 1;
kCGPathElementAddQuadCurveToPoint = 2;
kCGPathElementAddCurveToPoint = 3;
kCGPathElementCloseSubpath = 4;
kCGPDFObjectTypeNull = 1;
kCGPDFObjectTypeBoolean = 2;
kCGPDFObjectTypeInteger = 3;
kCGPDFObjectTypeReal = 4;
kCGPDFObjectTypeName = 5;
kCGPDFObjectTypeString = 6;
kCGPDFObjectTypeArray = 7;
kCGPDFObjectTypeDictionary = 8;
kCGPDFObjectTypeStream = 9;
CGPDFDataFormatRaw = 0;
CGPDFDataFormatJPEGEncoded = 1;
CGPDFDataFormatJPEG2000 = 2;
kCGPDFMediaBox = 0;
kCGPDFCropBox = 1;
kCGPDFBleedBox = 2;
kCGPDFTrimBox = 3;
kCGPDFArtBox = 4;
kCGPathFill = 0;
kCGPathEOFill = 1;
kCGPathStroke = 2;
kCGPathFillStroke = 3;
kCGPathEOFillStroke = 4;
kCGTextFill = 0;
kCGTextStroke = 1;
kCGTextFillStroke = 2;
kCGTextInvisible = 3;
kCGTextFillClip = 4;
kCGTextStrokeClip = 5;
kCGTextFillStrokeClip = 6;
kCGTextClip = 7;
kCGEncodingFontSpecific = 0;
kCGEncodingMacRoman = 1;
kCGInterpolationDefault = 0;
kCGInterpolationNone = 1;
kCGInterpolationLow = 2;
kCGInterpolationMedium = 4;
kCGInterpolationHigh = 3;
kCGBlendModeNormal = 0;
kCGBlendModeMultiply = 1;
kCGBlendModeScreen = 2;
kCGBlendModeOverlay = 3;
kCGBlendModeDarken = 4;
kCGBlendModeLighten = 5;
kCGBlendModeColorDodge = 6;
kCGBlendModeColorBurn = 7;
kCGBlendModeSoftLight = 8;
kCGBlendModeHardLight = 9;
kCGBlendModeDifference = 10;
kCGBlendModeExclusion = 11;
kCGBlendModeHue = 12;
kCGBlendModeSaturation = 13;
kCGBlendModeColor = 14;
kCGBlendModeLuminosity = 15;
kCGBlendModeClear = 16;
kCGBlendModeCopy = 17;
kCGBlendModeSourceIn = 18;
kCGBlendModeSourceOut = 19;
kCGBlendModeSourceAtop = 20;
kCGBlendModeDestinationOver = 21;
kCGBlendModeDestinationIn = 22;
kCGBlendModeDestinationOut = 23;
kCGBlendModeDestinationAtop = 24;
kCGBlendModeXOR = 25;
kCGBlendModePlusDarker = 26;
kCGBlendModePlusLighter = 27;
kCGColorConverterTransformFromSpace = 0;
kCGColorConverterTransformToSpace = 1;
kCGColorConverterTransformApplySpace = 2;
kCGErrorSuccess = 0;
kCGErrorFailure = 1000;
kCGErrorIllegalArgument = 1001;
kCGErrorInvalidConnection = 1002;
kCGErrorInvalidContext = 1003;
kCGErrorCannotComplete = 1004;
kCGErrorNotImplemented = 1006;
kCGErrorRangeCheck = 1007;
kCGErrorTypeCheck = 1008;
kCGErrorInvalidOperation = 1010;
kCGErrorNoneAvailable = 1011;
type
// ===== Framework typedefs =====
{$M+}
CGFloat = Single;
CGAffineTransform = record
a: CGFloat;
b: CGFloat;
c: CGFloat;
d: CGFloat;
tx: CGFloat;
ty: CGFloat;
end;
PCGAffineTransform = ^CGAffineTransform;
CGPoint = record
x: CGFloat;
y: CGFloat;
end;
PCGPoint = ^CGPoint;
CGSize = record
width: CGFloat;
height: CGFloat;
end;
PCGSize = ^CGSize;
CGVector = record
dx: CGFloat;
dy: CGFloat;
end;
PCGVector = ^CGVector;
CGRect = record
origin: CGPoint;
size: CGSize;
end;
PCGRect = ^CGRect;
CGRectEdge = LongWord;
CFDictionaryRef = Pointer;
CGContextRef = Pointer;
CGColorRef = Pointer;
CGColorSpaceRef = Pointer;
CGDataProviderRef = Pointer;
__darwin_size_t = LongWord;
CGDataProviderGetBytesCallback = function(param1: Pointer; param2: Pointer;
param3: LongWord): LongWord; cdecl;
__int64_t = Int64;
__darwin_off_t = __int64_t;
CGDataProviderSkipForwardCallback = function(param1: Pointer; param2: Integer)
: Integer; cdecl;
CGDataProviderRewindCallback = procedure(param1: Pointer); cdecl;
CGDataProviderReleaseInfoCallback = procedure(param1: Pointer); cdecl;
CGDataProviderSequentialCallbacks = record
version: Cardinal;
getBytes: CGDataProviderGetBytesCallback;
skipForward: CGDataProviderSkipForwardCallback;
rewind: CGDataProviderRewindCallback;
releaseInfo: CGDataProviderReleaseInfoCallback;
end;
PCGDataProviderSequentialCallbacks = ^CGDataProviderSequentialCallbacks;
CGDataProviderGetBytePointerCallback = function(param1: Pointer)
: Pointer; cdecl;
CGDataProviderReleaseBytePointerCallback = procedure(param1: Pointer;
param2: Pointer); cdecl;
CGDataProviderGetBytesAtPositionCallback = function(param1: Pointer;
param2: Pointer; param3: Integer; param4: LongWord): LongWord; cdecl;
CGDataProviderDirectCallbacks = record
version: Cardinal;
getBytePointer: CGDataProviderGetBytePointerCallback;
releaseBytePointer: CGDataProviderReleaseBytePointerCallback;
getBytesAtPosition: CGDataProviderGetBytesAtPositionCallback;
releaseInfo: CGDataProviderReleaseInfoCallback;
end;
PCGDataProviderDirectCallbacks = ^CGDataProviderDirectCallbacks;
CFTypeID = LongWord;
CGDataProviderReleaseDataCallback = procedure(param1: Pointer;
param2: Pointer; param3: LongWord); cdecl;
CFDataRef = Pointer;
CFURLRef = Pointer;
CGColorRenderingIntent = Int32;
CGColorSpaceModel = Int32;
CFStringRef = Pointer;
CGPatternRef = Pointer;
CGPatternTiling = Int32;
CGPatternDrawPatternCallback = procedure(param1: Pointer;
param2: CGContextRef); cdecl;
CGPatternReleaseInfoCallback = procedure(param1: Pointer); cdecl;
CGPatternCallbacks = record
version: Cardinal;
drawPattern: CGPatternDrawPatternCallback;
releaseInfo: CGPatternReleaseInfoCallback;
end;
PCGPatternCallbacks = ^CGPatternCallbacks;
CGFontRef = Pointer;
CGFontIndex = Word;
PCGFontIndex = ^CGFontIndex;
CGGlyph = CGFontIndex;
CGFontPostScriptFormat = Int32;
CFArrayRef = Pointer;
CGGlyphDeprecatedEnum = Int32;
CGGradientRef = Pointer;
CGGradientDrawingOptions = LongWord;
CGImageRef = Pointer;
CGImageAlphaInfo = LongWord;
CGBitmapInfo = LongWord;
CGMutablePathRef = Pointer;
CGPathRef = Pointer;
CGLineJoin = Int32;
CGLineCap = Int32;
CGPathElementType = Int32;
CGPathElement = record
&type: CGPathElementType;
points: Pointer;
end;
PCGPathElement = ^CGPathElement;
CGPathApplierFunction = procedure(param1: Pointer; param2: Pointer); cdecl;
CGPDFDocumentRef = Pointer;
CGPDFPageRef = Pointer;
CGPDFDictionaryRef = Pointer;
CGPDFArrayRef = Pointer;
CGPDFBoolean = Byte;
PCGPDFBoolean = ^CGPDFBoolean;
CGPDFInteger = LongInt;
PCGPDFInteger = ^CGPDFInteger;
CGPDFReal = CGFloat;
CGPDFObjectRef = Pointer;
CGPDFObjectType = Int32;
CGPDFStreamRef = Pointer;
CGPDFDataFormat = Int32;
CGPDFStringRef = Pointer;
CFDateRef = Pointer;
CGPDFDictionaryApplierFunction = procedure(param1: MarshaledAString;
param2: CGPDFObjectRef; param3: Pointer); cdecl;
CGPDFBox = Int32;
CGShadingRef = Pointer;
CGFunctionRef = Pointer;
CGFunctionEvaluateCallback = procedure(param1: Pointer; param2: PCGFloat;
param3: PCGFloat); cdecl;
CGFunctionReleaseInfoCallback = procedure(param1: Pointer); cdecl;
CGFunctionCallbacks = record
version: Cardinal;
evaluate: CGFunctionEvaluateCallback;
releaseInfo: CGFunctionReleaseInfoCallback;
end;
PCGFunctionCallbacks = ^CGFunctionCallbacks;
CGPathDrawingMode = Int32;
CGTextDrawingMode = Int32;
CGTextEncoding = Int32;
CGInterpolationQuality = Int32;
CGBlendMode = Int32;
CGBitmapContextReleaseDataCallback = procedure(param1: Pointer;
param2: Pointer); cdecl;
CGColorConverterRef = Pointer;
CGColorConverterTransformType = LongWord;
CGDataConsumerRef = Pointer;
CGDataConsumerPutBytesCallback = function(param1: Pointer; param2: Pointer;
param3: LongWord): LongWord; cdecl;
CGDataConsumerReleaseInfoCallback = procedure(param1: Pointer); cdecl;
CGDataConsumerCallbacks = record
putBytes: CGDataConsumerPutBytesCallback;
releaseConsumer: CGDataConsumerReleaseInfoCallback;
end;
PCGDataConsumerCallbacks = ^CGDataConsumerCallbacks;
CFMutableDataRef = Pointer;
CGError = Int32;
CGLayerRef = Pointer;
CGPDFContentStreamRef = Pointer;
CGPDFOperatorTableRef = Pointer;
CGPDFScannerRef = Pointer;
CGPDFOperatorCallback = procedure(param1: CGPDFScannerRef;
param2: Pointer); cdecl;
// ===== Exported string consts =====
function CGPointZero: Pointer;
function CGSizeZero: Pointer;
function CGRectZero: Pointer;
function CGRectNull: Pointer;
function CGRectInfinite: Pointer;
function CGAffineTransformIdentity: Pointer;
function kCGColorSpaceGenericGray: Pointer;
function kCGColorSpaceGenericRGB: Pointer;
function kCGColorSpaceGenericCMYK: Pointer;
function kCGColorSpaceDisplayP3: Pointer;
function kCGColorSpaceGenericRGBLinear: Pointer;
function kCGColorSpaceAdobeRGB1998: Pointer;
function kCGColorSpaceSRGB: Pointer;
function kCGColorSpaceGenericGrayGamma2_2: Pointer;
function kCGColorSpaceGenericXYZ: Pointer;
function kCGColorSpaceACESCGLinear: Pointer;
function kCGColorSpaceITUR_709: Pointer;
function kCGColorSpaceITUR_2020: Pointer;
function kCGColorSpaceROMMRGB: Pointer;
function kCGColorSpaceDCIP3: Pointer;
function kCGColorWhite: Pointer;
function kCGColorBlack: Pointer;
function kCGColorClear: Pointer;
function kCGFontVariationAxisName: Pointer;
function kCGFontVariationAxisMinValue: Pointer;
function kCGFontVariationAxisMaxValue: Pointer;
function kCGFontVariationAxisDefaultValue: Pointer;
function kCGPDFContextMediaBox: Pointer;
function kCGPDFContextCropBox: Pointer;
function kCGPDFContextBleedBox: Pointer;
function kCGPDFContextTrimBox: Pointer;
function kCGPDFContextArtBox: Pointer;
function kCGPDFContextTitle: Pointer;
function kCGPDFContextAuthor: Pointer;
function kCGPDFContextSubject: Pointer;
function kCGPDFContextKeywords: Pointer;
function kCGPDFContextCreator: Pointer;
function kCGPDFContextOwnerPassword: Pointer;
function kCGPDFContextUserPassword: Pointer;
function kCGPDFContextEncryptionKeyLength: Pointer;
function kCGPDFContextAllowsPrinting: Pointer;
function kCGPDFContextAllowsCopying: Pointer;
function kCGPDFContextOutputIntent: Pointer;
function kCGPDFXOutputIntentSubtype: Pointer;
function kCGPDFXOutputConditionIdentifier: Pointer;
function kCGPDFXOutputCondition: Pointer;
function kCGPDFXRegistryName: Pointer;
function kCGPDFXInfo: Pointer;
function kCGPDFXDestinationOutputProfile: Pointer;
function kCGPDFContextOutputIntents: Pointer;
// ===== External functions =====
const
libCoreGraphics =
'/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics';
function CGPointMake(x: CGFloat; y: CGFloat): CGPoint; cdecl;
external libCoreGraphics name _PU + 'CGPointMake';
function CGSizeMake(width: CGFloat; height: CGFloat): CGSize; cdecl;
external libCoreGraphics name _PU + 'CGSizeMake';
function CGVectorMake(dx: CGFloat; dy: CGFloat): CGVector; cdecl;
external libCoreGraphics name _PU + 'CGVectorMake';
function CGRectMake(x: CGFloat; y: CGFloat; width: CGFloat; height: CGFloat)
: CGRect; cdecl; external libCoreGraphics name _PU + 'CGRectMake';
function CGRectGetMinX(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetMinX';
function CGRectGetMidX(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetMidX';
function CGRectGetMaxX(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetMaxX';
function CGRectGetMinY(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetMinY';
function CGRectGetMidY(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetMidY';
function CGRectGetMaxY(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetMaxY';
function CGRectGetWidth(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetWidth';
function CGRectGetHeight(rect: CGRect): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGRectGetHeight';
function CGPointEqualToPoint(point1: CGPoint; point2: CGPoint): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPointEqualToPoint';
function CGSizeEqualToSize(size1: CGSize; size2: CGSize): Integer; cdecl;
external libCoreGraphics name _PU + 'CGSizeEqualToSize';
function CGRectEqualToRect(rect1: CGRect; rect2: CGRect): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectEqualToRect';
function CGRectStandardize(rect: CGRect): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGRectStandardize';
function CGRectIsEmpty(rect: CGRect): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectIsEmpty';
function CGRectIsNull(rect: CGRect): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectIsNull';
function CGRectIsInfinite(rect: CGRect): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectIsInfinite';
function CGRectInset(rect: CGRect; dx: CGFloat; dy: CGFloat): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGRectInset';
function CGRectIntegral(rect: CGRect): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGRectIntegral';
function CGRectUnion(r1: CGRect; r2: CGRect): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGRectUnion';
function CGRectIntersection(r1: CGRect; r2: CGRect): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGRectIntersection';
function CGRectOffset(rect: CGRect; dx: CGFloat; dy: CGFloat): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGRectOffset';
procedure CGRectDivide(rect: CGRect; slice: Pointer; remainder: Pointer;
amount: CGFloat; edge: CGRectEdge); cdecl;
external libCoreGraphics name _PU + 'CGRectDivide';
function CGRectContainsPoint(rect: CGRect; point: CGPoint): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectContainsPoint';
function CGRectContainsRect(rect1: CGRect; rect2: CGRect): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectContainsRect';
function CGRectIntersectsRect(rect1: CGRect; rect2: CGRect): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectIntersectsRect';
function CGPointCreateDictionaryRepresentation(point: CGPoint): CFDictionaryRef;
cdecl; external libCoreGraphics name _PU +
'CGPointCreateDictionaryRepresentation';
function CGPointMakeWithDictionaryRepresentation(dict: CFDictionaryRef;
point: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPointMakeWithDictionaryRepresentation';
function CGSizeCreateDictionaryRepresentation(size: CGSize): CFDictionaryRef;
cdecl; external libCoreGraphics name _PU +
'CGSizeCreateDictionaryRepresentation';
function CGSizeMakeWithDictionaryRepresentation(dict: CFDictionaryRef;
size: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGSizeMakeWithDictionaryRepresentation';
function CGRectCreateDictionaryRepresentation(param1: CGRect): CFDictionaryRef;
cdecl; external libCoreGraphics name _PU +
'CGRectCreateDictionaryRepresentation';
function CGRectMakeWithDictionaryRepresentation(dict: CFDictionaryRef;
rect: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGRectMakeWithDictionaryRepresentation';
function __CGPointEqualToPoint(point1: CGPoint; point2: CGPoint): Integer;
cdecl; external libCoreGraphics name _PU + '__CGPointEqualToPoint';
function __CGSizeEqualToSize(size1: CGSize; size2: CGSize): Integer; cdecl;
external libCoreGraphics name _PU + '__CGSizeEqualToSize';
function CGAffineTransformMake(a: CGFloat; b: CGFloat; c: CGFloat; d: CGFloat;
tx: CGFloat; ty: CGFloat): CGAffineTransform; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformMake';
function CGAffineTransformMakeTranslation(tx: CGFloat; ty: CGFloat)
: CGAffineTransform; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformMakeTranslation';
function CGAffineTransformMakeScale(sx: CGFloat; sy: CGFloat)
: CGAffineTransform; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformMakeScale';
function CGAffineTransformMakeRotation(angle: CGFloat): CGAffineTransform;
cdecl; external libCoreGraphics name _PU + 'CGAffineTransformMakeRotation';
function CGAffineTransformIsIdentity(t: CGAffineTransform): Integer; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformIsIdentity';
function CGAffineTransformTranslate(t: CGAffineTransform; tx: CGFloat;
ty: CGFloat): CGAffineTransform; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformTranslate';
function CGAffineTransformScale(t: CGAffineTransform; sx: CGFloat; sy: CGFloat)
: CGAffineTransform; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformScale';
function CGAffineTransformRotate(t: CGAffineTransform; angle: CGFloat)
: CGAffineTransform; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformRotate';
function CGAffineTransformInvert(t: CGAffineTransform): CGAffineTransform;
cdecl; external libCoreGraphics name _PU + 'CGAffineTransformInvert';
function CGAffineTransformConcat(t1: CGAffineTransform; t2: CGAffineTransform)
: CGAffineTransform; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformConcat';
function CGAffineTransformEqualToTransform(t1: CGAffineTransform;
t2: CGAffineTransform): Integer; cdecl;
external libCoreGraphics name _PU + 'CGAffineTransformEqualToTransform';
function CGPointApplyAffineTransform(point: CGPoint; t: CGAffineTransform)
: CGPoint; cdecl; external libCoreGraphics name _PU +
'CGPointApplyAffineTransform';
function CGSizeApplyAffineTransform(size: CGSize; t: CGAffineTransform): CGSize;
cdecl; external libCoreGraphics name _PU + 'CGSizeApplyAffineTransform';
function CGRectApplyAffineTransform(rect: CGRect; t: CGAffineTransform): CGRect;
cdecl; external libCoreGraphics name _PU + 'CGRectApplyAffineTransform';
function __CGAffineTransformMake(a: CGFloat; b: CGFloat; c: CGFloat; d: CGFloat;
tx: CGFloat; ty: CGFloat): CGAffineTransform; cdecl;
external libCoreGraphics name _PU + '__CGAffineTransformMake';
function __CGPointApplyAffineTransform(point: CGPoint; t: CGAffineTransform)
: CGPoint; cdecl; external libCoreGraphics name _PU +
'__CGPointApplyAffineTransform';
function __CGSizeApplyAffineTransform(size: CGSize; t: CGAffineTransform)
: CGSize; cdecl; external libCoreGraphics name _PU +
'__CGSizeApplyAffineTransform';
function CGDataProviderGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGDataProviderGetTypeID';
function CGDataProviderCreateSequential(info: Pointer; callbacks: Pointer)
: CGDataProviderRef; cdecl;
external libCoreGraphics name _PU + 'CGDataProviderCreateSequential';
function CGDataProviderCreateDirect(info: Pointer; size: Integer;
callbacks: Pointer): CGDataProviderRef; cdecl;
external libCoreGraphics name _PU + 'CGDataProviderCreateDirect';
function CGDataProviderCreateWithData(info: Pointer; data: Pointer;
size: LongWord; releaseData: CGDataProviderReleaseDataCallback)
: CGDataProviderRef; cdecl;
external libCoreGraphics name _PU + 'CGDataProviderCreateWithData';
function CGDataProviderCreateWithCFData(data: CFDataRef): CGDataProviderRef;
cdecl; external libCoreGraphics name _PU + 'CGDataProviderCreateWithCFData';
function CGDataProviderCreateWithURL(url: CFURLRef): CGDataProviderRef; cdecl;
external libCoreGraphics name _PU + 'CGDataProviderCreateWithURL';
function CGDataProviderCreateWithFilename(filename: MarshaledAString)
: CGDataProviderRef; cdecl;
external libCoreGraphics name _PU + 'CGDataProviderCreateWithFilename';
function CGDataProviderRetain(provider: CGDataProviderRef): CGDataProviderRef;
cdecl; external libCoreGraphics name _PU + 'CGDataProviderRetain';
procedure CGDataProviderRelease(provider: CGDataProviderRef); cdecl;
external libCoreGraphics name _PU + 'CGDataProviderRelease';
function CGDataProviderCopyData(provider: CGDataProviderRef): CFDataRef; cdecl;
external libCoreGraphics name _PU + 'CGDataProviderCopyData';
function CGColorSpaceCreateDeviceGray: CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateDeviceGray';
function CGColorSpaceCreateDeviceRGB: CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateDeviceRGB';
function CGColorSpaceCreateDeviceCMYK: CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateDeviceCMYK';
function CGColorSpaceCreateCalibratedGray(whitePoint: CGFloat;
blackPoint: CGFloat; gamma: CGFloat): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateCalibratedGray';
function CGColorSpaceCreateCalibratedRGB(whitePoint: CGFloat;
blackPoint: CGFloat; gamma: CGFloat; matrix: CGFloat): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateCalibratedRGB';
function CGColorSpaceCreateLab(whitePoint: CGFloat; blackPoint: CGFloat;
range: CGFloat): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateLab';
function CGColorSpaceCreateWithICCProfile(data: CFDataRef): CGColorSpaceRef;
cdecl; external libCoreGraphics name _PU + 'CGColorSpaceCreateWithICCProfile';
function CGColorSpaceCreateICCBased(nComponents: LongWord; range: PCGFloat;
profile: CGDataProviderRef; alternate: CGColorSpaceRef): CGColorSpaceRef;
cdecl; external libCoreGraphics name _PU + 'CGColorSpaceCreateICCBased';
function CGColorSpaceCreateIndexed(baseSpace: CGColorSpaceRef;
lastIndex: LongWord; colorTable: PByte): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateIndexed';
function CGColorSpaceCreatePattern(baseSpace: CGColorSpaceRef): CGColorSpaceRef;
cdecl; external libCoreGraphics name _PU + 'CGColorSpaceCreatePattern';
function CGColorSpaceCreateWithPlatformColorSpace(ref: Pointer)
: CGColorSpaceRef; cdecl; external libCoreGraphics name _PU +
'CGColorSpaceCreateWithPlatformColorSpace';
function CGColorSpaceCreateWithName(name: CFStringRef): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCreateWithName';
function CGColorSpaceRetain(space: CGColorSpaceRef): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceRetain';
procedure CGColorSpaceRelease(space: CGColorSpaceRef); cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceRelease';
function CGColorSpaceCopyName(space: CGColorSpaceRef): CFStringRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCopyName';
function CGColorSpaceGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceGetTypeID';
function CGColorSpaceGetNumberOfComponents(space: CGColorSpaceRef): LongWord;
cdecl; external libCoreGraphics name _PU +
'CGColorSpaceGetNumberOfComponents';
function CGColorSpaceGetModel(space: CGColorSpaceRef): CGColorSpaceModel; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceGetModel';
function CGColorSpaceGetBaseColorSpace(space: CGColorSpaceRef): CGColorSpaceRef;
cdecl; external libCoreGraphics name _PU + 'CGColorSpaceGetBaseColorSpace';
function CGColorSpaceGetColorTableCount(space: CGColorSpaceRef): LongWord;
cdecl; external libCoreGraphics name _PU + 'CGColorSpaceGetColorTableCount';
procedure CGColorSpaceGetColorTable(space: CGColorSpaceRef; table: PByte);
cdecl; external libCoreGraphics name _PU + 'CGColorSpaceGetColorTable';
function CGColorSpaceCopyICCProfile(space: CGColorSpaceRef): CFDataRef; cdecl;
external libCoreGraphics name _PU + 'CGColorSpaceCopyICCProfile';
function CGPatternGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGPatternGetTypeID';
function CGPatternCreate(info: Pointer; bounds: CGRect;
matrix: CGAffineTransform; xStep: CGFloat; yStep: CGFloat;
tiling: CGPatternTiling; isColored: Integer; callbacks: Pointer)
: CGPatternRef; cdecl; external libCoreGraphics name _PU + 'CGPatternCreate';
function CGPatternRetain(pattern: CGPatternRef): CGPatternRef; cdecl;
external libCoreGraphics name _PU + 'CGPatternRetain';
procedure CGPatternRelease(pattern: CGPatternRef); cdecl;
external libCoreGraphics name _PU + 'CGPatternRelease';
function CGColorCreate(space: CGColorSpaceRef; components: PCGFloat)
: CGColorRef; cdecl; external libCoreGraphics name _PU + 'CGColorCreate';
function CGColorCreateGenericGray(gray: CGFloat; alpha: CGFloat): CGColorRef;
cdecl; external libCoreGraphics name _PU + 'CGColorCreateGenericGray';
function CGColorCreateGenericRGB(red: CGFloat; green: CGFloat; blue: CGFloat;
alpha: CGFloat): CGColorRef; cdecl;
external libCoreGraphics name _PU + 'CGColorCreateGenericRGB';
function CGColorCreateGenericCMYK(cyan: CGFloat; magenta: CGFloat;
yellow: CGFloat; black: CGFloat; alpha: CGFloat): CGColorRef; cdecl;
external libCoreGraphics name _PU + 'CGColorCreateGenericCMYK';
function CGColorGetConstantColor(colorName: CFStringRef): CGColorRef; cdecl;
external libCoreGraphics name _PU + 'CGColorGetConstantColor';
function CGColorCreateWithPattern(space: CGColorSpaceRef; pattern: CGPatternRef;
components: PCGFloat): CGColorRef; cdecl;
external libCoreGraphics name _PU + 'CGColorCreateWithPattern';
function CGColorCreateCopy(color: CGColorRef): CGColorRef; cdecl;
external libCoreGraphics name _PU + 'CGColorCreateCopy';
function CGColorCreateCopyWithAlpha(color: CGColorRef; alpha: CGFloat)
: CGColorRef; cdecl; external libCoreGraphics name _PU +
'CGColorCreateCopyWithAlpha';
function CGColorCreateCopyByMatchingToColorSpace(param1: CGColorSpaceRef;
intent: CGColorRenderingIntent; color: CGColorRef; options: CFDictionaryRef)
: CGColorRef; cdecl; external libCoreGraphics name _PU +
'CGColorCreateCopyByMatchingToColorSpace';
function CGColorRetain(color: CGColorRef): CGColorRef; cdecl;
external libCoreGraphics name _PU + 'CGColorRetain';
procedure CGColorRelease(color: CGColorRef); cdecl;
external libCoreGraphics name _PU + 'CGColorRelease';
function CGColorEqualToColor(color1: CGColorRef; color2: CGColorRef): Integer;
cdecl; external libCoreGraphics name _PU + 'CGColorEqualToColor';
function CGColorGetNumberOfComponents(color: CGColorRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGColorGetNumberOfComponents';
function CGColorGetComponents(color: CGColorRef): PCGFloat; cdecl;
external libCoreGraphics name _PU + 'CGColorGetComponents';
function CGColorGetAlpha(color: CGColorRef): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGColorGetAlpha';
function CGColorGetColorSpace(color: CGColorRef): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGColorGetColorSpace';
function CGColorGetPattern(color: CGColorRef): CGPatternRef; cdecl;
external libCoreGraphics name _PU + 'CGColorGetPattern';
function CGColorGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGColorGetTypeID';
function CGFontGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGFontGetTypeID';
function CGFontCreateWithPlatformFont(platformFontReference: Pointer)
: CGFontRef; cdecl; external libCoreGraphics name _PU +
'CGFontCreateWithPlatformFont';
function CGFontCreateWithDataProvider(provider: CGDataProviderRef): CGFontRef;
cdecl; external libCoreGraphics name _PU + 'CGFontCreateWithDataProvider';
function CGFontCreateWithFontName(name: CFStringRef): CGFontRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCreateWithFontName';
function CGFontCreateCopyWithVariations(font: CGFontRef;
variations: CFDictionaryRef): CGFontRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCreateCopyWithVariations';
function CGFontRetain(font: CGFontRef): CGFontRef; cdecl;
external libCoreGraphics name _PU + 'CGFontRetain';
procedure CGFontRelease(font: CGFontRef); cdecl;
external libCoreGraphics name _PU + 'CGFontRelease';
function CGFontGetNumberOfGlyphs(font: CGFontRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGFontGetNumberOfGlyphs';
function CGFontGetUnitsPerEm(font: CGFontRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetUnitsPerEm';
function CGFontCopyPostScriptName(font: CGFontRef): CFStringRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCopyPostScriptName';
function CGFontCopyFullName(font: CGFontRef): CFStringRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCopyFullName';
function CGFontGetAscent(font: CGFontRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetAscent';
function CGFontGetDescent(font: CGFontRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetDescent';
function CGFontGetLeading(font: CGFontRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetLeading';
function CGFontGetCapHeight(font: CGFontRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetCapHeight';
function CGFontGetXHeight(font: CGFontRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetXHeight';
function CGFontGetFontBBox(font: CGFontRef): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGFontGetFontBBox';
function CGFontGetItalicAngle(font: CGFontRef): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGFontGetItalicAngle';
function CGFontGetStemV(font: CGFontRef): CGFloat; cdecl;
external libCoreGraphics name _PU + 'CGFontGetStemV';
function CGFontCopyVariationAxes(font: CGFontRef): CFArrayRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCopyVariationAxes';
function CGFontCopyVariations(font: CGFontRef): CFDictionaryRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCopyVariations';
function CGFontGetGlyphAdvances(font: CGFontRef; glyphs: unsigned short *;
count: LongWord; advances: PInteger): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetGlyphAdvances';
function CGFontGetGlyphBBoxes(font: CGFontRef; glyphs: unsigned short *;
count: LongWord; bboxes: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontGetGlyphBBoxes';
function CGFontGetGlyphWithGlyphName(font: CGFontRef; name: CFStringRef)
: CGGlyph; cdecl; external libCoreGraphics name _PU +
'CGFontGetGlyphWithGlyphName';
function CGFontCopyGlyphNameForGlyph(font: CGFontRef; glyph: CGGlyph)
: CFStringRef; cdecl; external libCoreGraphics name _PU +
'CGFontCopyGlyphNameForGlyph';
function CGFontCanCreatePostScriptSubset(font: CGFontRef;
format: CGFontPostScriptFormat): Integer; cdecl;
external libCoreGraphics name _PU + 'CGFontCanCreatePostScriptSubset';
function CGFontCreatePostScriptSubset(font: CGFontRef; subsetName: CFStringRef;
format: CGFontPostScriptFormat; glyphs: unsigned short *; count: LongWord;
encoding: CGGlyph): CFDataRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCreatePostScriptSubset';
function CGFontCreatePostScriptEncoding(font: CGFontRef; encoding: CGGlyph)
: CFDataRef; cdecl; external libCoreGraphics name _PU +
'CGFontCreatePostScriptEncoding';
function CGFontCopyTableTags(font: CGFontRef): CFArrayRef; cdecl;
external libCoreGraphics name _PU + 'CGFontCopyTableTags';
function CGFontCopyTableForTag(font: CGFontRef; tag: LongWord): CFDataRef;
cdecl; external libCoreGraphics name _PU + 'CGFontCopyTableForTag';
function CGGradientGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGGradientGetTypeID';
function CGGradientCreateWithColorComponents(space: CGColorSpaceRef;
components: PCGFloat; locations: PCGFloat; count: LongWord): CGGradientRef;
cdecl; external libCoreGraphics name _PU +
'CGGradientCreateWithColorComponents';
function CGGradientCreateWithColors(space: CGColorSpaceRef; colors: CFArrayRef;
locations: PCGFloat): CGGradientRef; cdecl;
external libCoreGraphics name _PU + 'CGGradientCreateWithColors';
function CGGradientRetain(gradient: CGGradientRef): CGGradientRef; cdecl;
external libCoreGraphics name _PU + 'CGGradientRetain';
procedure CGGradientRelease(gradient: CGGradientRef); cdecl;
external libCoreGraphics name _PU + 'CGGradientRelease';
function CGImageGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGImageGetTypeID';
function CGImageCreate(width: LongWord; height: LongWord;
bitsPerComponent: LongWord; bitsPerPixel: LongWord; bytesPerRow: LongWord;
space: CGColorSpaceRef; bitmapInfo: CGBitmapInfo; provider: CGDataProviderRef;
decode: PCGFloat; shouldInterpolate: Integer; intent: CGColorRenderingIntent)
: CGImageRef; cdecl; external libCoreGraphics name _PU + 'CGImageCreate';
function CGImageMaskCreate(width: LongWord; height: LongWord;
bitsPerComponent: LongWord; bitsPerPixel: LongWord; bytesPerRow: LongWord;
provider: CGDataProviderRef; decode: PCGFloat; shouldInterpolate: Integer)
: CGImageRef; cdecl; external libCoreGraphics name _PU + 'CGImageMaskCreate';
function CGImageCreateCopy(image: CGImageRef): CGImageRef; cdecl;
external libCoreGraphics name _PU + 'CGImageCreateCopy';
function CGImageCreateWithJPEGDataProvider(source: CGDataProviderRef;
decode: PCGFloat; shouldInterpolate: Integer; intent: CGColorRenderingIntent)
: CGImageRef; cdecl; external libCoreGraphics name _PU +
'CGImageCreateWithJPEGDataProvider';
function CGImageCreateWithPNGDataProvider(source: CGDataProviderRef;
decode: PCGFloat; shouldInterpolate: Integer; intent: CGColorRenderingIntent)
: CGImageRef; cdecl; external libCoreGraphics name _PU +
'CGImageCreateWithPNGDataProvider';
function CGImageCreateWithImageInRect(image: CGImageRef; rect: CGRect)
: CGImageRef; cdecl; external libCoreGraphics name _PU +
'CGImageCreateWithImageInRect';
function CGImageCreateWithMask(image: CGImageRef; mask: CGImageRef): CGImageRef;
cdecl; external libCoreGraphics name _PU + 'CGImageCreateWithMask';
function CGImageCreateWithMaskingColors(image: CGImageRef; components: PCGFloat)
: CGImageRef; cdecl; external libCoreGraphics name _PU +
'CGImageCreateWithMaskingColors';
function CGImageCreateCopyWithColorSpace(image: CGImageRef;
space: CGColorSpaceRef): CGImageRef; cdecl;
external libCoreGraphics name _PU + 'CGImageCreateCopyWithColorSpace';
function CGImageRetain(image: CGImageRef): CGImageRef; cdecl;
external libCoreGraphics name _PU + 'CGImageRetain';
procedure CGImageRelease(image: CGImageRef); cdecl;
external libCoreGraphics name _PU + 'CGImageRelease';
function CGImageIsMask(image: CGImageRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGImageIsMask';
function CGImageGetWidth(image: CGImageRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGImageGetWidth';
function CGImageGetHeight(image: CGImageRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGImageGetHeight';
function CGImageGetBitsPerComponent(image: CGImageRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGImageGetBitsPerComponent';
function CGImageGetBitsPerPixel(image: CGImageRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGImageGetBitsPerPixel';
function CGImageGetBytesPerRow(image: CGImageRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGImageGetBytesPerRow';
function CGImageGetColorSpace(image: CGImageRef): CGColorSpaceRef; cdecl;
external libCoreGraphics name _PU + 'CGImageGetColorSpace';
function CGImageGetAlphaInfo(image: CGImageRef): CGImageAlphaInfo; cdecl;
external libCoreGraphics name _PU + 'CGImageGetAlphaInfo';
function CGImageGetDataProvider(image: CGImageRef): CGDataProviderRef; cdecl;
external libCoreGraphics name _PU + 'CGImageGetDataProvider';
function CGImageGetDecode(image: CGImageRef): PCGFloat; cdecl;
external libCoreGraphics name _PU + 'CGImageGetDecode';
function CGImageGetShouldInterpolate(image: CGImageRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGImageGetShouldInterpolate';
function CGImageGetRenderingIntent(image: CGImageRef): CGColorRenderingIntent;
cdecl; external libCoreGraphics name _PU + 'CGImageGetRenderingIntent';
function CGImageGetBitmapInfo(image: CGImageRef): CGBitmapInfo; cdecl;
external libCoreGraphics name _PU + 'CGImageGetBitmapInfo';
function CGImageGetUTType(image: CGImageRef): CFStringRef; cdecl;
external libCoreGraphics name _PU + 'CGImageGetUTType';
function CGPathGetTypeID: CFTypeID; cdecl;
external libCoreGraphics name _PU + 'CGPathGetTypeID';
function CGPathCreateMutable: CGMutablePathRef; cdecl;
external libCoreGraphics name _PU + 'CGPathCreateMutable';
function CGPathCreateCopy(path: CGPathRef): CGPathRef; cdecl;
external libCoreGraphics name _PU + 'CGPathCreateCopy';
function CGPathCreateCopyByTransformingPath(path: CGPathRef; transform: Pointer)
: CGPathRef; cdecl; external libCoreGraphics name _PU +
'CGPathCreateCopyByTransformingPath';
function CGPathCreateMutableCopy(path: CGPathRef): CGMutablePathRef; cdecl;
external libCoreGraphics name _PU + 'CGPathCreateMutableCopy';
function CGPathCreateMutableCopyByTransformingPath(path: CGPathRef;
transform: Pointer): CGMutablePathRef; cdecl;
external libCoreGraphics name _PU +
'CGPathCreateMutableCopyByTransformingPath';
function CGPathCreateWithRect(rect: CGRect; transform: Pointer): CGPathRef;
cdecl; external libCoreGraphics name _PU + 'CGPathCreateWithRect';
function CGPathCreateWithEllipseInRect(rect: CGRect; transform: Pointer)
: CGPathRef; cdecl; external libCoreGraphics name _PU +
'CGPathCreateWithEllipseInRect';
function CGPathCreateWithRoundedRect(rect: CGRect; cornerWidth: CGFloat;
cornerHeight: CGFloat; transform: Pointer): CGPathRef; cdecl;
external libCoreGraphics name _PU + 'CGPathCreateWithRoundedRect';
procedure CGPathAddRoundedRect(path: CGMutablePathRef; transform: Pointer;
rect: CGRect; cornerWidth: CGFloat; cornerHeight: CGFloat); cdecl;
external libCoreGraphics name _PU + 'CGPathAddRoundedRect';
function CGPathCreateCopyByDashingPath(path: CGPathRef; transform: Pointer;
phase: CGFloat; lengths: PCGFloat; count: LongWord): CGPathRef; cdecl;
external libCoreGraphics name _PU + 'CGPathCreateCopyByDashingPath';
function CGPathCreateCopyByStrokingPath(path: CGPathRef; transform: Pointer;
lineWidth: CGFloat; lineCap: CGLineCap; lineJoin: CGLineJoin;
miterLimit: CGFloat): CGPathRef; cdecl;
external libCoreGraphics name _PU + 'CGPathCreateCopyByStrokingPath';
function CGPathRetain(path: CGPathRef): CGPathRef; cdecl;
external libCoreGraphics name _PU + 'CGPathRetain';
procedure CGPathRelease(path: CGPathRef); cdecl;
external libCoreGraphics name _PU + 'CGPathRelease';
function CGPathEqualToPath(path1: CGPathRef; path2: CGPathRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPathEqualToPath';
procedure CGPathMoveToPoint(path: CGMutablePathRef; m: Pointer; x: CGFloat;
y: CGFloat); cdecl; external libCoreGraphics name _PU + 'CGPathMoveToPoint';
procedure CGPathAddLineToPoint(path: CGMutablePathRef; m: Pointer; x: CGFloat;
y: CGFloat); cdecl; external libCoreGraphics name _PU +
'CGPathAddLineToPoint';
procedure CGPathAddQuadCurveToPoint(path: CGMutablePathRef; m: Pointer;
cpx: CGFloat; cpy: CGFloat; x: CGFloat; y: CGFloat); cdecl;
external libCoreGraphics name _PU + 'CGPathAddQuadCurveToPoint';
procedure CGPathAddCurveToPoint(path: CGMutablePathRef; m: Pointer;
cp1x: CGFloat; cp1y: CGFloat; cp2x: CGFloat; cp2y: CGFloat; x: CGFloat;
y: CGFloat); cdecl; external libCoreGraphics name _PU +
'CGPathAddCurveToPoint';
procedure CGPathCloseSubpath(path: CGMutablePathRef); cdecl;
external libCoreGraphics name _PU + 'CGPathCloseSubpath';
procedure CGPathAddRect(path: CGMutablePathRef; m: Pointer; rect: CGRect);
cdecl; external libCoreGraphics name _PU + 'CGPathAddRect';
procedure CGPathAddRects(path: CGMutablePathRef; m: Pointer; rects: Pointer;
count: LongWord); cdecl; external libCoreGraphics name _PU + 'CGPathAddRects';
procedure CGPathAddLines(path: CGMutablePathRef; m: Pointer; points: Pointer;
count: LongWord); cdecl; external libCoreGraphics name _PU + 'CGPathAddLines';
procedure CGPathAddEllipseInRect(path: CGMutablePathRef; m: Pointer;
rect: CGRect); cdecl; external libCoreGraphics name _PU +
'CGPathAddEllipseInRect';
procedure CGPathAddRelativeArc(path: CGMutablePathRef; matrix: Pointer;
x: CGFloat; y: CGFloat; radius: CGFloat; startAngle: CGFloat; delta: CGFloat);
cdecl; external libCoreGraphics name _PU + 'CGPathAddRelativeArc';
procedure CGPathAddArc(path: CGMutablePathRef; m: Pointer; x: CGFloat;
y: CGFloat; radius: CGFloat; startAngle: CGFloat; endAngle: CGFloat;
clockwise: Integer); cdecl;
external libCoreGraphics name _PU + 'CGPathAddArc';
procedure CGPathAddArcToPoint(path: CGMutablePathRef; m: Pointer; x1: CGFloat;
y1: CGFloat; x2: CGFloat; y2: CGFloat; radius: CGFloat); cdecl;
external libCoreGraphics name _PU + 'CGPathAddArcToPoint';
procedure CGPathAddPath(path1: CGMutablePathRef; m: Pointer; path2: CGPathRef);
cdecl; external libCoreGraphics name _PU + 'CGPathAddPath';
function CGPathIsEmpty(path: CGPathRef): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPathIsEmpty';
function CGPathIsRect(path: CGPathRef; rect: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPathIsRect';
function CGPathGetCurrentPoint(path: CGPathRef): CGPoint; cdecl;
external libCoreGraphics name _PU + 'CGPathGetCurrentPoint';
function CGPathGetBoundingBox(path: CGPathRef): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGPathGetBoundingBox';
function CGPathGetPathBoundingBox(path: CGPathRef): CGRect; cdecl;
external libCoreGraphics name _PU + 'CGPathGetPathBoundingBox';
function CGPathContainsPoint(path: CGPathRef; m: Pointer; point: CGPoint;
eoFill: Integer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPathContainsPoint';
procedure CGPathApply(path: CGPathRef; info: Pointer;
&function: CGPathApplierFunction); cdecl;
external libCoreGraphics name _PU + 'CGPathApply';
function CGPDFObjectGetType(&object: CGPDFObjectRef): CGPDFObjectType; cdecl;
external libCoreGraphics name _PU + 'CGPDFObjectGetType';
function CGPDFObjectGetValue(&object: CGPDFObjectRef; &type: CGPDFObjectType;
value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFObjectGetValue';
function CGPDFStreamGetDictionary(stream: CGPDFStreamRef): CGPDFDictionaryRef;
cdecl; external libCoreGraphics name _PU + 'CGPDFStreamGetDictionary';
function CGPDFStreamCopyData(stream: CGPDFStreamRef; format: Int32): CFDataRef;
cdecl; external libCoreGraphics name _PU + 'CGPDFStreamCopyData';
function CGPDFStringGetLength(&string: CGPDFStringRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGPDFStringGetLength';
function CGPDFStringGetBytePtr(&string: CGPDFStringRef): PByte; cdecl;
external libCoreGraphics name _PU + 'CGPDFStringGetBytePtr';
function CGPDFStringCopyTextString(&string: CGPDFStringRef): CFStringRef; cdecl;
external libCoreGraphics name _PU + 'CGPDFStringCopyTextString';
function CGPDFStringCopyDate(&string: CGPDFStringRef): CFDateRef; cdecl;
external libCoreGraphics name _PU + 'CGPDFStringCopyDate';
function CGPDFArrayGetCount(&array: CGPDFArrayRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetCount';
function CGPDFArrayGetObject(&array: CGPDFArrayRef; index: LongWord;
value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetObject';
function CGPDFArrayGetNull(&array: CGPDFArrayRef; index: LongWord): Integer;
cdecl; external libCoreGraphics name _PU + 'CGPDFArrayGetNull';
function CGPDFArrayGetBoolean(&array: CGPDFArrayRef; index: LongWord;
value: PByte): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetBoolean';
function CGPDFArrayGetInteger(&array: CGPDFArrayRef; index: LongWord;
value: PLongInt): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetInteger';
function CGPDFArrayGetNumber(&array: CGPDFArrayRef; index: LongWord;
value: PCGFloat): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetNumber';
function CGPDFArrayGetName(&array: CGPDFArrayRef; index: LongWord;
value: MarshaledAString): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetName';
function CGPDFArrayGetString(&array: CGPDFArrayRef; index: LongWord;
value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetString';
function CGPDFArrayGetArray(&array: CGPDFArrayRef; index: LongWord;
value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetArray';
function CGPDFArrayGetDictionary(&array: CGPDFArrayRef; index: LongWord;
value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetDictionary';
function CGPDFArrayGetStream(&array: CGPDFArrayRef; index: LongWord;
value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFArrayGetStream';
function CGPDFDictionaryGetCount(dict: CGPDFDictionaryRef): LongWord; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetCount';
function CGPDFDictionaryGetObject(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetObject';
function CGPDFDictionaryGetBoolean(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: PByte): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetBoolean';
function CGPDFDictionaryGetInteger(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: PLongInt): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetInteger';
function CGPDFDictionaryGetNumber(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: PCGFloat): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetNumber';
function CGPDFDictionaryGetName(dict: CGPDFDictionaryRef; key: MarshaledAString;
value: MarshaledAString): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetName';
function CGPDFDictionaryGetString(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetString';
function CGPDFDictionaryGetArray(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetArray';
function CGPDFDictionaryGetDictionary(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetDictionary';
function CGPDFDictionaryGetStream(dict: CGPDFDictionaryRef;
key: MarshaledAString; value: Pointer): Integer; cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryGetStream';
procedure CGPDFDictionaryApplyFunction(dict: CGPDFDictionaryRef;
&function: CGPDFDictionaryApplierFunction; info: Pointer); cdecl;
external libCoreGraphics name _PU + 'CGPDFDictionaryApplyFunction';
function CGPDFPageRetain(page: CGPDFPageRef): CGPDFPageRef; cdecl;
external libCoreGraphics name _PU + 'CGPDFPageRetain';
procedure CGPDFPageRelease(page: CGPDFPageRef); cdecl;
external libCoreGraphics name _PU + 'CGPDFPageRelease';
function CGPDFPageGetDocument(page: CGPDFPageRef): CGPDFDocumentRef; cdecl;
external libCoreGraphics name _PU + 'CGPDFPageGetDocument';
function CGPDFPageGetPageNumber(page: CGPDFPageRef): LongWord; cdecl;