FreeImage.NET Class Library Reference
![]() | FreeImageBitmap Constructor (Int32, Int32, Graphics) |
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) Version: 3.17.0.4 (3.17.0)

C#
public FreeImageBitmap( int width, int height, Graphics g )
Parameters
- width
- Type: SystemInt32
The width, in pixels, of the new FreeImageBitmap. - height
- Type: SystemInt32
The height, in pixels, of the new FreeImageBitmap. - g
- Type: System.DrawingGraphics
The Graphics object that specifies the resolution for the new FreeImageBitmap.

Exception | Condition |
---|---|
Exception | The operation failed. |
ArgumentNullException | g is a null reference. |
