 | DrawingResizeSquaredImage Method |
Resize and image with preservation of the squared dimensions
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static MemoryStream ResizeSquaredImage(
Image image,
int squareMeasure,
ImageFormat format,
InterpolationMode interpolation
)
Public Shared Function ResizeSquaredImage (
image As Image,
squareMeasure As Integer,
format As ImageFormat,
interpolation As InterpolationMode
) As MemoryStream
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:
MemoryStreamA memory stream object with result image
See Also