Click or drag to resize
DrawingSquaredImage Method
Resize and image with preservation of the squared dimensions (auto-detected)

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

Parameters

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