Resizes the bitmap to the specified dimensions using a given interpolation algorithm.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public void Resize( int width, int height, ResizeInterpolationMode mode )
Type: System.Int32
The width of resized bitmap. If 0, it is calculated automatically to preserve the aspect ratio of the source image. Both width and height cannot be 0 at the same time.Type: System.Int32
The height of resized bitmap. If 0, it is calculated automatically to preserve the aspect ratio of the source image. Both width and height cannot be 0 at the same time.Type: Aurigma.GraphicsMill.Transforms.ResizeInterpolationMode
A ResizeInterpolationMode interpolation algorithm which used during the resize.using (var bitmap = new Bitmap(@"Images\in.jpg")) { bitmap.Transforms.Resize(100, 0, ResizeInterpolationMode.High, ResizeMode.Fit); bitmap.Save(@"Images\Output\out.jpg"); }