MonobjcMonobjc Documented Class Library
CreateWithData Method (data, width, height, bitsPerComponent, bytesPerRow, space, bitmapInfo, releaseCallback, releaseInfo)
NamespacesMonobjc.ApplicationServicesCGBitmapContextCreateWithData(IntPtr, NSUInteger, NSUInteger, NSUInteger, NSUInteger, IntPtr, CGBitmapInfo, CGBitmapContextReleaseDataCallback, IntPtr)

Creates a bitmap graphics context with the specified callback function.

Original signature is 'CGContextRef CGBitmapContextCreateWithData( void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef space, CGBitmapInfo bitmapInfo, CGBitmapContextReleaseDataCallback releaseCallback, void *releaseInfo );'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr CreateWithData(
	IntPtr data,
	NSUInteger width,
	NSUInteger height,
	NSUInteger bitsPerComponent,
	NSUInteger bytesPerRow,
	IntPtr space,
	CGBitmapInfo bitmapInfo,
	CGBitmapContextReleaseDataCallback releaseCallback,
	IntPtr releaseInfo
)
Public Shared Function CreateWithData ( _
	data As IntPtr, _
	width As NSUInteger, _
	height As NSUInteger, _
	bitsPerComponent As NSUInteger, _
	bytesPerRow As NSUInteger, _
	space As IntPtr, _
	bitmapInfo As CGBitmapInfo, _
	releaseCallback As CGBitmapContextReleaseDataCallback, _
	releaseInfo As IntPtr _
) As IntPtr
public:
static IntPtr CreateWithData(
	IntPtr data, 
	NSUInteger width, 
	NSUInteger height, 
	NSUInteger bitsPerComponent, 
	NSUInteger bytesPerRow, 
	IntPtr space, 
	CGBitmapInfo bitmapInfo, 
	CGBitmapContextReleaseDataCallback^ releaseCallback, 
	IntPtr releaseInfo
)
Parameters
data (IntPtr)
MISSING
width (NSUInteger)
MISSING
height (NSUInteger)
MISSING
bitsPerComponent (NSUInteger)
MISSING
bytesPerRow (NSUInteger)
MISSING
space (IntPtr)
MISSING
bitmapInfo (CGBitmapInfo)
MISSING
releaseCallback (CGBitmapContextReleaseDataCallback)
MISSING
releaseInfo (IntPtr)
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)

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