FreeImage.NET Class Library Reference
FreeImageBitmap Constructor (Int32, Int32, FREE_IMAGE_TYPE) |
Initializes a new instance of the FreeImageBitmap class bases on the specified size and type.
Only non standard bitmaps are supported.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap( int width, int height, FREE_IMAGE_TYPE type )
Parameters
- width
- Type: SystemInt32
The width, in pixels, of the new FreeImageBitmap. - height
- Type: SystemInt32
The height, in pixels, of the new FreeImageBitmap. - type
- Type: FreeImageAPIFREE_IMAGE_TYPE
The type of the bitmap.
Exceptions
Exception | Condition |
---|---|
Exception | The operation failed. |
ArgumentOutOfRangeException | type is FIT_BITMAP or FIT_UNKNOWN. |
ArgumentException | type is invalid. |
ArgumentOutOfRangeException | width or height are less or equal zero. |
See Also