Creates and returns an image representation object using the contents of the specified file.
Original signature is '+ (id)imageRepWithContentsOfFile:(NSString *)filename'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public static NSPICTImageRep ImageRepWithContentsOfFile( NSString filename )
Public Shared Function ImageRepWithContentsOfFile ( _ filename As NSString _ ) As NSPICTImageRep
public: static NSPICTImageRep^ ImageRepWithContentsOfFile( NSString^ filename )

- filename (NSString)
- A full or relative pathname specifying the file to open. This string should include the filename extension.

An initialized instance of an NSImageRep subclass, or nil if the image data could not be read.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)