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( Bitmap original, Size newSize ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ original As Bitmap, _ newSize As Size _ ) |
Visual C++ |
---|
public: FreeImageBitmap( Bitmap^ original, Size newSize ) |
Parameters
- original
- Type: System.Drawing..::.Bitmap
The original to clone from.
- newSize
- Type: System.Drawing..::.Size
The Size structure that represent the size of the new FreeImageBitmap.
Remarks
Although this constructor supports creating images in both formats
Format32bppPArgb
and Format64bppPArgb, bitmaps
created in these formats are treated like any normal 32-bit RGBA and 64-bit RGBA
images respectively. Currently, there is no support for automatic premultiplying images in
FreeImageBitmap.
Exceptions
Exception | Condition |
---|---|
System..::.Exception | The operation failed. |
System..::.ArgumentNullException | original is a null reference. |
System..::.ArgumentOutOfRangeException | newSize.Width or newSize.Height are less or equal zero. |