Techbirds | Knowledge Hub | Page 24
Hii all, To save canvas or children’s of canvas as an image use the following code under the click event of your save button here “mycanvas” is your canvas name which is to be saved as an image. try { int height = Convert.ToInt32(Application.Current.RootVisual.RenderSize.Height); int width = Convert.ToInt32(Application.Current.RootVisual.RenderSize.Width); var bitmap = new WriteableBitmap(height, width); bitmap.Render(mycanvas,