@Jeremiah Morrill is what you do at the core. However, Microsoft was good enough to provide some interaction methods:
using System.Windows.Interop; using Gdi = System.Drawing; using (var tempBitmap = new Gdi.Bitmap(width, height)) { using (var g = Gdi.Graphics.FromImage(tempBitmap)) {
Thecloudlessky
source share