i looking simple drawing in wpf application, wondering if simple task or if should 3rd party libraries.
quite want draw on image control points , lines between points. easy do?
thanks!
for sample use ..you can draw line using basics only...
how set canvas backgroud image..
imagebrush ib = new imagebrush(); ib.imagesource = new bitmapimage(new uri(@"sampleimages\berries.jpg", urikind.relative)); mycanvas.background = ib; and can draw on canvas line this..
line = new line(); line.stroke = brushes.lightsteelblue; line.x1 = 1; line.x2 = 50; line.y1 = 1; line.y2 = 50; line.strokethickness = 2; mycanvas.children.add(line); hope start..
Comments
Post a Comment