MonobjcMonobjc Documented Class Library
ImageRepWithContentsOfFile Method (filename)
NamespacesMonobjc.AppKitNSImageRepImageRepWithContentsOfFile(NSString)

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.

Declaration Syntax
C#Visual BasicVisual C++
public static NSImageRep ImageRepWithContentsOfFile(
	NSString filename
)
Public Shared Function ImageRepWithContentsOfFile ( _
	filename As NSString _
) As NSImageRep
public:
static NSImageRep^ ImageRepWithContentsOfFile(
	NSString^ filename
)
Parameters
filename (NSString)
A full or relative pathname specifying the file to open. This string should include the filename extension.
Return Value
An initialized instance of an NSImageRep subclass, or nil if the image data could not be read.
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)