FreeImageBitmap Constructor (Bitmap, Size)

FreeImage.NET

FreeImageBitmap Constructor (Bitmap, Size)
Initializes a new instance of the FreeImageBitmap class bases on the specified image with the specified size.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap(
	Bitmap original,
	Size newSize
)

Parameters

original
Type: System.DrawingBitmap
The original to clone from.
newSize
Type: System.DrawingSize
The Size structure that represent the size of the new FreeImageBitmap.
Exceptions
ExceptionCondition
ExceptionThe operation failed.
ArgumentNullExceptionoriginal is a null reference.
ArgumentOutOfRangeExceptionnewSize.Width or newSize.Height are less or equal zero.
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.
See Also