FreeImageBitmap.ConvertType Method

FreeImage.NET

FreeImageBitmapConvertType Method
Converts this FreeImageBitmapFREE_IMAGE_TYPE to type initializing a new instance. In case source and destination type are the same, the operation fails. An error message can be catched using the 'Message' event.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public bool ConvertType(
	FREE_IMAGE_TYPE type,
	bool scaleLinear
)

Parameters

type
Type: FreeImageAPIFREE_IMAGE_TYPE
Destination type.
scaleLinear
Type: SystemBoolean
True to scale linear, else false.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also