FreeImageBitmap.RescaleRect Method

FreeImage.NET

FreeImageBitmapRescaleRect Method

[Missing <summary> documentation for "M:FreeImageAPI.FreeImageBitmap.RescaleRect(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,FreeImageAPI.FREE_IMAGE_FILTER,FreeImageAPI.FREE_IMAGE_RESCALE_FLAGS)"]

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap RescaleRect(
	int dstWidth,
	int dstHeight,
	int left,
	int top,
	int right,
	int bottom,
	FREE_IMAGE_FILTER filter = FREE_IMAGE_FILTER.FILTER_CATMULLROM,
	FREE_IMAGE_RESCALE_FLAGS flags = FREE_IMAGE_RESCALE_FLAGS.FI_RESCALE_DEFAULT
)

Parameters

dstWidth
Type: SystemInt32
Width of the rescaled image.
dstHeight
Type: SystemInt32
Height of the rescaled image.
left
Type: SystemInt32
Left side of the rectangle which will be rescaled.
top
Type: SystemInt32
Top side of the rectangle which will be rescaled.
right
Type: SystemInt32
Right side of the rectangle which will be rescaled.
bottom
Type: SystemInt32
Bottom side of the rectangle which will be rescaled.
filter (Optional)
Type: FreeImageAPIFREE_IMAGE_FILTER
The filter used for rescaling.
flags (Optional)
Type: FreeImageAPIFREE_IMAGE_RESCALE_FLAGS
Rescaling options

Return Value

Type: FreeImageBitmap
A new image containing the rescaled version of the selected rectangle on success, otherwise null.
See Also