A www.Sockets4.NET class library

ImageCanvas.ResizeCanvas Method (Int32, Int32, Color)

Changes the size of the ImageCanvas without stretching the underlying image.

public void ResizeCanvas(
   int width,
   int height,
   Color background
);

Parameters

width
New width of the image
height
New height of the image
background
Background color to be used if new size is larger

See Also

ImageCanvas Class | Sockets4Images Namespace | ImageCanvas.ResizeCanvas Overload List