Initializes a new instance of the FreeImageBitmap class bases on the specified size and with the resolution of the specified Graphics object.

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

Syntax

C#
public FreeImageBitmap(
	int width,
	int height,
	Graphics g
)
Visual Basic (Declaration)
Public Sub New ( _
	width As Integer, _
	height As Integer, _
	g As Graphics _
)
Visual C++
public:
FreeImageBitmap(
	int width, 
	int height, 
	Graphics^ g
)

Parameters

width
Type: System..::.Int32
The width, in pixels, of the new FreeImageBitmap.
height
Type: System..::.Int32
The height, in pixels, of the new FreeImageBitmap.
g
Type: System.Drawing..::.Graphics
The Graphics object that specifies the resolution for the new FreeImageBitmap.

Exceptions

ExceptionCondition
System..::.ExceptionThe operation failed.
System..::.ArgumentNullException g is a null reference.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also