comparison dstep/applicationservices/coregraphics/CGBitmapContext.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.CGBitmapContext;
8
9 import dstep.applicationservices.coregraphics.CGBase;
10 import dstep.applicationservices.coregraphics.CGColorSpace;
11 import dstep.applicationservices.coregraphics.CGImage;
12 import dstep.applicationservices.coregraphics.CGContext;
13
14 extern (C)
15 {
16 CGContextRef CGBitmapContextCreate (void* data, uint width, uint height, uint bitsPerComponent, uint bytesPerRow, CGColorSpaceRef colorspace, uint bitmapInfo);
17 void* CGBitmapContextGetData (CGContextRef c);
18 uint CGBitmapContextGetWidth (CGContextRef c);
19 uint CGBitmapContextGetHeight (CGContextRef c);
20 uint CGBitmapContextGetBitsPerComponent (CGContextRef c);
21 uint CGBitmapContextGetBitsPerPixel (CGContextRef c);
22 uint CGBitmapContextGetBytesPerRow (CGContextRef c);
23 CGColorSpaceRef CGBitmapContextGetColorSpace (CGContextRef c);
24 int CGBitmapContextGetAlphaInfo (CGContextRef c);
25 uint CGBitmapContextGetBitmapInfo (CGContextRef c);
26 CGImageRef CGBitmapContextCreateImage (CGContextRef c);
27 }