Click or drag to resize
DrawingResizeImage Method
Resize and image with preservation of the dimensions

Namespace: ToolBoox
Assembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static MemoryStream ResizeImage(
	Image image,
	int maxWidth,
	int maxHeight,
	ImageFormat format,
	InterpolationMode interpolation
)

Parameters

image
Type: System.DrawingImage
Source image object
maxWidth
Type: SystemInt32
Max with dimension of final image
maxHeight
Type: SystemInt32
Max height dimension of final image
format
Type: System.Drawing.ImagingImageFormat
Result format value
interpolation
Type: System.Drawing.Drawing2DInterpolationMode
Result interploation value

Return Value

Type: MemoryStream
A memory stream object with result image
See Also