MonobjcMonobjc Documented Class Library
InitWithData Method (data)
NamespacesMonobjc.AppKitNSImageInitWithData(NSData)

Initializes and returns an NSImage instance with the contents of the specified NSData object.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithData(
	NSData data
)
Public Overridable Function InitWithData ( _
	data As NSData _
) As Id
public:
virtual Id^ InitWithData(
	NSData^ data
)
Parameters
data (NSData)
The data object containing the image data.
Return Value
An initialized NSImage instance, or nil if the method cannot create an image representation from the contents of the specified data object.
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)