Creates a thumbnail from a greyscale or RGB(A) image, keeping aspect ratio.

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

Syntax

C#
public static FIBITMAP MakeThumbnail(
	FIBITMAP dib,
	int max_pixel_size,
	bool convert
)
Visual Basic (Declaration)
Public Shared Function MakeThumbnail ( _
	dib As FIBITMAP, _
	max_pixel_size As Integer, _
	convert As Boolean _
) As FIBITMAP
Visual C++
public:
static FIBITMAP MakeThumbnail(
	FIBITMAP dib, 
	int max_pixel_size, 
	bool convert
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
max_pixel_size
Type: System..::.Int32
Thumbnail square size.
convert
Type: System..::.Boolean
When true HDR images are transperantly converted to standard images.

Return Value

Handle to a FreeImage bitmap.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also