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