MonobjcMonobjc Documented Class Library
ImageFromResource Method (type, resourceName)
NamespacesMonobjc.AppKitNSImageImageFromResource(Type, String)

Create a NSImage from a manifest resource stream.

Once retrieved, the instance is named and cached.

Declaration Syntax
C#Visual BasicVisual C++
public static NSImage ImageFromResource(
	Type type,
	string resourceName
)
Public Shared Function ImageFromResource ( _
	type As Type, _
	resourceName As String _
) As NSImage
public:
static NSImage^ ImageFromResource(
	Type^ type, 
	String^ resourceName
)
Parameters
type (Type)
The type whose assembly contains the manifest resource.
resourceName (String)
Name of the resource.
Return Value
An autoreleased NSImage instance
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)