February 7th, 2009, 05:34 AM
Creating an Image Editor Application
I want to create an application for Image Editor. I've created a simple Image Editor, like ms.Paint with less features, only can draw rectangle, line, and ellips, erase things, etc, and no canvas (u can draw everywhere on form.
I want to create a new one, which able to do more, like using canvas, there's layers, able to insert image,etc.
There is a lot of questions I wanna ask.
First of all, I found out that C# has Canvas class, how to use it ?
I'm using this code :
private void Editor_Load(object sender, EventArgs e)
Canvas myCanvas = new Canvas();
myCanvas.Width = 500;
myCanvas.Height = 200;
myCanvas.VerticalAlignment = System.Windows.VerticalAlignment.Top;
myCanvas.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
There is nothing happened. Are there is anyway to create Canvas with tools ? If there isn't, please anyone tell me how to use canvas..
and also, are we able to draw on canvas ?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.