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

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

Parameters

image
Type: System.DrawingImage
Source image object
squareMeasure
Type: SystemInt32
Max dimensions 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