Skip to content

Instantly share code, notes, and snippets.

View hassan-theitguy's full-sized avatar
🏠
Working from home

Hassan Voyeau hassan-theitguy

🏠
Working from home
View GitHub Profile
@hassan-theitguy
hassan-theitguy / code.cs
Created June 12, 2018 15:59
Render InkCanvas to image file
// ***************************
// SOURCE - https://github.com/hassan-theitguy/WpfDrawingApp/blob/1b21dcc4ef3da2fa15e26087d4087d135139f7be/WpfDrawingApp/MainWindow.xaml.cs
// ***************************
// If I render the canvas directly the result includes the left menu area (and is blank).
// Got the idea from online to copy to a DrawingVisual and then render that.
DrawingVisual Drawing = new DrawingVisual();
// How come DrawingArea width is of type double?