Initializes an image object with the supplied image data, using the specified options.
Original signature is '- (id)initWithData:(NSData *)data options:(NSDictionary *)d'
Available in 4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual Id InitWithDataOptions( NSData data, NSDictionary d )
Public Overridable Function InitWithDataOptions ( _ data As NSData, _ d As NSDictionary _ ) As Id
public: virtual Id^ InitWithDataOptions( NSData^ data, NSDictionary^ d )
Parameters
- data (NSData)
- The image data. The data you supply must be premultiplied.
- d (NSDictionary)
- A dictionary that contains options for creating an image object. You can supply such options as a pixel format and a color space. See “Pixel Formats”.
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)