FreeImageBitmap Constructor (Int32, Int32, FREE_IMAGE_TYPE)

FreeImage.NET

FreeImageBitmap Constructor (Int32, Int32, FREE_IMAGE_TYPE)
Initializes a new instance of the FreeImageBitmap class bases on the specified size and type. Only non standard bitmaps are supported.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap(
	int width,
	int height,
	FREE_IMAGE_TYPE type
)

Parameters

width
Type: SystemInt32
The width, in pixels, of the new FreeImageBitmap.
height
Type: SystemInt32
The height, in pixels, of the new FreeImageBitmap.
type
Type: FreeImageAPIFREE_IMAGE_TYPE
The type of the bitmap.
Exceptions
ExceptionCondition
ExceptionThe operation failed.
ArgumentOutOfRangeExceptiontype is FIT_BITMAP or FIT_UNKNOWN.
ArgumentExceptiontype is invalid.
ArgumentOutOfRangeExceptionwidth or height are less or equal zero.
See Also