New to Telerik UI for WinForms? Download free 30-day trial

Canvas Resize via UI

You can use the Canvas Resize button which will open the canvas resize dialog. In the dialog you can set the alignment, the size, and the BackColor.

WinForms RadImageEditor Canvas Resize Option WinForms RadImageEditor Resize Canvas Dialog

Canvas Resize Programmatically

The following snippet shows how you can use the ResizeCanvas method. You will need to specify the size, the alignment, and the BackColor.

Use the ResizeCanvas method

radImageEditor1.ImageEditorElement.ResizeCanvas(500, 500, ContentAlignment.BottomRight, Color.Red);
radImageEditor1.ImageEditorElement.SaveState();

radImageEditor1.ImageEditorElement.ResizeCanvas(500, 500, ContentAlignment.BottomRight, Color.Red)
radImageEditor1.ImageEditorElement.SaveState()

See Also

In this article