Initializes a new instance of the FreeImageBitmap class
bases on the specified image with the specified size.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public FreeImageBitmap( FreeImageBitmap original, int width, int height ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ original As FreeImageBitmap, _ width As Integer, _ height As Integer _ ) |
Visual C++ |
---|
public: FreeImageBitmap( FreeImageBitmap^ original, int width, int height ) |
Parameters
- original
- Type: FreeImageAPI..::.FreeImageBitmap
The original to clone from.
- width
- Type: System..::.Int32
Width of the new FreeImageBitmap.
- height
- Type: System..::.Int32
Height of the new FreeImageBitmap.
Exceptions
Exception | Condition |
---|---|
System..::.Exception | The operation failed. |
System..::.ArgumentNullException | original is a null reference. |
System..::.ArgumentOutOfRangeException | width or height are less or equal zero. |