Mercurial > projects > dstep
comparison dstep/applicationservices/coregraphics/CGColorSpace.d @ 12:9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 14:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:07194b026fa4 | 12:9f0b49a2f64e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Aug 1, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.applicationservices.coregraphics.CGColorSpace; | |
8 | |
9 import dstep.applicationservices.coregraphics.CGBase; | |
10 import dstep.applicationservices.coregraphics.CGDataProvider; | |
11 import dstep.corefoundation.CFBase; | |
12 import dstep.corefoundation.CFData; | |
13 | |
14 struct CGColorSpace; | |
15 | |
16 alias CGColorSpace* CGColorSpaceRef; | |
17 alias int CGColorRenderingIntent; | |
18 alias int CGColorSpaceModel; | |
19 | |
20 extern (C) | |
21 { | |
22 extern | |
23 { | |
24 const CFStringRef kCGColorSpaceGenericGray; | |
25 const CFStringRef kCGColorSpaceGenericRGB; | |
26 const CFStringRef kCGColorSpaceGenericCMYK; | |
27 const CFStringRef kCGColorSpaceGenericRGBLinear; | |
28 const CFStringRef kCGColorSpaceAdobeRGB1998; | |
29 const CFStringRef kCGColorSpaceSRGB; | |
30 } | |
31 } | |
32 | |
33 enum /*CGColorRenderingIntent*/ | |
34 { | |
35 kCGRenderingIntentDefault, | |
36 kCGRenderingIntentAbsoluteColorimetric, | |
37 kCGRenderingIntentRelativeColorimetric, | |
38 kCGRenderingIntentPerceptual, | |
39 kCGRenderingIntentSaturation | |
40 } | |
41 | |
42 enum /*CGColorSpaceModel*/ | |
43 { | |
44 kCGColorSpaceModelUnknown = -1, | |
45 kCGColorSpaceModelMonochrome, | |
46 kCGColorSpaceModelRGB, | |
47 kCGColorSpaceModelCMYK, | |
48 kCGColorSpaceModelLab, | |
49 kCGColorSpaceModelDeviceN, | |
50 kCGColorSpaceModelIndexed, | |
51 kCGColorSpaceModelPattern | |
52 } | |
53 | |
54 extern (C) | |
55 { | |
56 CGColorSpaceRef CGColorSpaceCreateDeviceGray (); | |
57 CGColorSpaceRef CGColorSpaceCreateDeviceRGB (); | |
58 CGColorSpaceRef CGColorSpaceCreateDeviceCMYK (); | |
59 CGColorSpaceRef CGColorSpaceCreateCalibratedGray (CGFloat* whitePoint, CGFloat* blackPoint, CGFloat gamma); | |
60 CGColorSpaceRef CGColorSpaceCreateCalibratedRGB (CGFloat* whitePoint, CGFloat* blackPoint, CGFloat* gamma, CGFloat* matrix); | |
61 CGColorSpaceRef CGColorSpaceCreateLab (CGFloat* whitePoint, CGFloat* blackPoint, CGFloat* range); | |
62 CGColorSpaceRef CGColorSpaceCreateICCBased (uint nComponents, CGFloat* range, CGDataProviderRef profile, CGColorSpaceRef alternate); | |
63 CGColorSpaceRef CGColorSpaceCreateIndexed (CGColorSpaceRef baseSpace, uint lastIndex, char* colorTable); | |
64 CGColorSpaceRef CGColorSpaceCreatePattern (CGColorSpaceRef baseSpace); | |
65 CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace (void* ref_); | |
66 CGColorSpaceRef CGColorSpaceCreateWithName (CFStringRef name); | |
67 CGColorSpaceRef CGColorSpaceRetain (CGColorSpaceRef space); | |
68 void CGColorSpaceRelease (CGColorSpaceRef space); | |
69 uint CGColorSpaceGetTypeID (); | |
70 uint CGColorSpaceGetNumberOfComponents (CGColorSpaceRef space); | |
71 int CGColorSpaceGetModel (CGColorSpaceRef space); | |
72 CGColorSpaceRef CGColorSpaceGetBaseColorSpace (CGColorSpaceRef space); | |
73 uint CGColorSpaceGetColorTableCount (CGColorSpaceRef space); | |
74 void CGColorSpaceGetColorTable (CGColorSpaceRef space, char* table); | |
75 CFDataRef CGColorSpaceCopyICCProfile (CGColorSpaceRef space); | |
76 } |