FreeImage.LoadBitmap Method

FreeImage.NET

FreeImageLoadBitmap Method
Loads a .NET Bitmap from a file.

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

Parameters

filename
Type: SystemString
Name of the file to be loaded.
flags
Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.
format
Type: FreeImageAPIFREE_IMAGE_FORMAT
Format of the image. If the format should be taken from the filename use FIF_UNKNOWN.

Return Value

Type: Bitmap
The loaded .NET Bitmap.
Exceptions
ExceptionCondition
FileNotFoundExceptionfilename does not exists.
ArgumentException The image type of the image is not FIT_BITMAP.
See Also