Initializes a new instance of the FreeImageBitmap class bases on the specified size and type.
Only non standard bitmaps are supported.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public FreeImageBitmap( int width, int height, FREE_IMAGE_TYPE type ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ width As Integer, _ height As Integer, _ type As FREE_IMAGE_TYPE _ ) |
Visual C++ |
---|
public: FreeImageBitmap( int width, int height, FREE_IMAGE_TYPE type ) |
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.
- type
- Type: FreeImageAPI..::.FREE_IMAGE_TYPE
The type of the bitmap.
Exceptions
Exception | Condition |
---|---|
System..::.Exception | The operation failed. |
System..::.ArgumentOutOfRangeException | type is FIT_BITMAP or FIT_UNKNOWN. |
System..::.ArgumentException | type is invalid. |
System..::.ArgumentOutOfRangeException | width or height are less or equal zero. |