Click or drag to resize

ResizeCanvasCommand Constructor (Size, Point, Int32)

Creates a new instance of ResizeCanvasCommand specifying canvasSize, position, canvasColor, and canvasPaletteIndex.

Namespace:  Atalasoft.Imaging.ImageProcessing.Transforms
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public ResizeCanvasCommand(
	Size canvasSize,
	Point position,
	int canvasPaletteIndex
)

Parameters

canvasSize
Type: System.DrawingSize
The size of the new canvas.
position
Type: System.DrawingPoint
The position of the image on the new canvas.
canvasPaletteIndex
Type: SystemInt32
The palette index of the canvas
Exceptions
ExceptionCondition
Thrown if either the canvasSize height or width is less than or equal to 0.
See Also