MonobjcMonobjc Documented Class Library
CIImage Constructor (d, bpr, size, f, c)
NamespacesMonobjc.QuartzCoreCIImageCIImage(NSData, IntPtr, CGSize, Int32, IntPtr)

Initializes an image object with bitmap data.

Original signature is '- (id)initWithBitmapData:(NSData *)d bytesPerRow:(size_t)bpr size:(CGSize)size format:(CIFormat)f colorSpace:(CGColorSpaceRef)c'

Available in 4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public CIImage(
	NSData d,
	IntPtr bpr,
	CGSize size,
	int f,
	IntPtr c
)
Public Sub New ( _
	d As NSData, _
	bpr As IntPtr, _
	size As CGSize, _
	f As Integer, _
	c As IntPtr _
)
public:
CIImage(
	NSData^ d, 
	IntPtr bpr, 
	CGSize size, 
	int f, 
	IntPtr c
)
Parameters
d (NSData)
The bitmap data to use for the image. The data you supply must be premultiplied.
bpr (IntPtr)
The number of bytes per row.
size (CGSize)
The size of the image data.
f (Int32)
A pixel format constant. See “Pixel Formats”.
c (IntPtr)
The color space that the image is defined in and must be a Quartz 2D color space (CGColorSpaceRef). Pass nil for images that don’t contain color data (such as elevation maps, normal vector maps, and sampled function tables).
Return Value
The initialized image object or nil if the object could not be initialized.
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)