MonobjcMonobjc Documented Class Library
Create Method (data, width, height, bitsPerComponent, bytesPerRow, colorspace, bitmapInfo)
NamespacesMonobjc.ApplicationServicesCGBitmapContextCreate(IntPtr, NSUInteger, NSUInteger, NSUInteger, NSUInteger, IntPtr, CGBitmapInfo)

Creates a bitmap graphics context.

Original signature is 'CGContextRef CGBitmapContextCreate ( void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef colorspace, CGBitmapInfo bitmapInfo );'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr Create(
	IntPtr data,
	NSUInteger width,
	NSUInteger height,
	NSUInteger bitsPerComponent,
	NSUInteger bytesPerRow,
	IntPtr colorspace,
	CGBitmapInfo bitmapInfo
)
Public Shared Function Create ( _
	data As IntPtr, _
	width As NSUInteger, _
	height As NSUInteger, _
	bitsPerComponent As NSUInteger, _
	bytesPerRow As NSUInteger, _
	colorspace As IntPtr, _
	bitmapInfo As CGBitmapInfo _
) As IntPtr
public:
static IntPtr Create(
	IntPtr data, 
	NSUInteger width, 
	NSUInteger height, 
	NSUInteger bitsPerComponent, 
	NSUInteger bytesPerRow, 
	IntPtr colorspace, 
	CGBitmapInfo bitmapInfo
)
Parameters
data (IntPtr)
MISSING
width (NSUInteger)
MISSING
height (NSUInteger)
MISSING
bitsPerComponent (NSUInteger)
MISSING
bytesPerRow (NSUInteger)
MISSING
colorspace (IntPtr)
MISSING
bitmapInfo (CGBitmapInfo)
MISSING
Return Value
A new bitmap context, or NULL if a context could not be created. You are responsible for releasing this object using CGContextRelease.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)