Mac OS 9
CGBitmapContext.h
Go to the documentation of this file.
1 
19 #ifndef __CGBITMAPCONTEXT__
20 #define __CGBITMAPCONTEXT__
21 
22 #ifndef __CGBASE__
23 #include <CGBase.h>
24 #endif
25 
26 #ifndef __CGCONTEXT__
27 #include <CGContext.h>
28 #endif
29 
30 /* Create a bitmap context. The context draws into a bitmap which is
31  * `width' pixels wide and `height' pixels high. The number of components
32  * for each pixel is specified by `colorspace', which also may specify a
33  * destination color profile. The number of bits for each component of a
34  * pixel is specified by `bitsPerComponent', which must be 1, 2, 4, or 8.
35  * Each row of the bitmap consists of `bytesPerRow' bytes, which must be at
36  * least `(width * bitsPerComponent * number of components + 7)/8' bytes.
37  * `data' points a block of memory at least `bytesPerRow * height' bytes.
38  * `alphaInfo' specifies whether the bitmap should contain an alpha
39  * channel, and how it's to be generated. */
40 
41 #if PRAGMA_ONCE
42 #pragma once
43 #endif
44 
45 #ifdef __cplusplus
46 extern "C"
47 {
48 #endif
49 
50 #if PRAGMA_IMPORT
51 #pragma import on
52 #endif
53 
54 #if PRAGMA_STRUCT_ALIGN
55 #pragma options align = mac68k
56 #elif PRAGMA_STRUCT_PACKPUSH
57 #pragma pack(push, 2)
58 #elif PRAGMA_STRUCT_PACK
59 #pragma pack(2)
60 #endif
61 
70  CGContextRef
71  CGBitmapContextCreate(void *data, size_t width, size_t height,
72  size_t bitsPerComponent, size_t bytesPerRow,
73  CGColorSpaceRef colorspace, CGImageAlphaInfo alphaInfo);
74 
75 #if PRAGMA_STRUCT_ALIGN
76 #pragma options align = reset
77 #elif PRAGMA_STRUCT_PACKPUSH
78 #pragma pack(pop)
79 #elif PRAGMA_STRUCT_PACK
80 #pragma pack()
81 #endif
82 
83 #ifdef PRAGMA_IMPORT_OFF
84 #pragma import off
85 #elif PRAGMA_IMPORT
86 #pragma import reset
87 #endif
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif /* __CGBITMAPCONTEXT__ */
xxx put contents here xxx
CGContextRef CGBitmapContextCreate(void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef colorspace, CGImageAlphaInfo alphaInfo)
CoreGraphics context.