Performs resampling (or scaling, zooming) of a greyscale or RGB(A) image to the desired destination width and height.

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

Syntax

C#
public static FIBITMAP Rescale(
	FIBITMAP dib,
	int dst_width,
	int dst_height,
	FREE_IMAGE_FILTER filter
)
Visual Basic (Declaration)
Public Shared Function Rescale ( _
	dib As FIBITMAP, _
	dst_width As Integer, _
	dst_height As Integer, _
	filter As FREE_IMAGE_FILTER _
) As FIBITMAP
Visual C++
public:
static FIBITMAP Rescale(
	FIBITMAP dib, 
	int dst_width, 
	int dst_height, 
	FREE_IMAGE_FILTER filter
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
dst_width
Type: System..::.Int32
Destination width.
dst_height
Type: System..::.Int32
Destination height.
filter
Type: FreeImageAPI..::.FREE_IMAGE_FILTER
The filter to apply.

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