Creates a FreeImageBitmap from the specified Windows resource.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static FreeImageBitmap FromResource(
	IntPtr hinstance,
	string bitmapName
)
Visual Basic (Declaration)
Public Shared Function FromResource ( _
	hinstance As IntPtr, _
	bitmapName As String _
) As FreeImageBitmap
Visual C++
public:
static FreeImageBitmap^ FromResource(
	IntPtr hinstance, 
	String^ bitmapName
)

Parameters

hinstance
Type: System..::.IntPtr
A handle to an instance of the executable file that contains the resource.
bitmapName
Type: System..::.String
A string containing the name of the resource bitmap.

Return Value

The FreeImageBitmap that this method creates.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also