FreeImageBitmap Constructor (String, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS)

FreeImage.NET

FreeImageBitmap Constructor (String, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS)
Initializes a new instance of the FreeImageBitmap class bases on the specified file in the specified format with the specified loading flags.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap(
	string filename,
	FREE_IMAGE_FORMAT format,
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

filename
Type: SystemString
The complete name of the file to load.
format
Type: FreeImageAPIFREE_IMAGE_FORMAT
Format of the image.
flags
Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.
Exceptions
ExceptionCondition
ExceptionThe operation failed.
ArgumentNullExceptionfilename is a null reference.
FileNotFoundExceptionfilename does not exist.
See Also