Initializes an image object from the contents of a file, using the specified options.
Original signature is '- (id)initWithContentsOfURL:(NSURL *)url options:(NSDictionary *)d'
Available in 4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual Id InitWithContentsOfURLOptions( NSURL url, NSDictionary d )
Public Overridable Function InitWithContentsOfURLOptions ( _ url As NSURL, _ d As NSDictionary _ ) As Id
public: virtual Id^ InitWithContentsOfURLOptions( NSURL^ url, NSDictionary^ d )
Parameters
- url (NSURL)
- The location of the file.
- 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)