Initializes a new instance of the FreeImageBitmap class bases on the specified image with the specified size.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public FreeImageBitmap(
	FreeImageBitmap original,
	Size newSize
)
Visual Basic (Declaration)
Public Sub New ( _
	original As FreeImageBitmap, _
	newSize As Size _
)
Visual C++
public:
FreeImageBitmap(
	FreeImageBitmap^ original, 
	Size newSize
)

Parameters

original
Type: FreeImageAPI..::.FreeImageBitmap
The original to clone from.
newSize
Type: System.Drawing..::.Size
The Size structure that represent the size of the new FreeImageBitmap.

Exceptions

ExceptionCondition
System..::.ExceptionThe operation failed.
System..::.ArgumentNullException original is a null reference.
System..::.ArgumentOutOfRangeException newSize.Width or newSize.Height are less or equal zero.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also