MonobjcMonobjc Documented Class Library
InitWithData Method (bitmapData)

Initializes a newly allocated NSBitmapImageRep from the provided data.

Original signature is '- (id)initWithData:(NSData *)bitmapData'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithData(
	NSData bitmapData
Public Overridable Function InitWithData ( _
	bitmapData As NSData _
) As Id
virtual Id^ InitWithData(
	NSData^ bitmapData
bitmapData (NSData)
A data object containing image data. The contents of bitmapData can be any supported bitmap format. For TIFF data, the NSBitmapImageRep is initialized from the first header and image data found in bitmapData.
Return Value
Returns an initialized NSBitmapImageRep if the initialization was successful or nil if it was unable to interpret the contents of bitmapData.
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)