private System.Drawing.Bitmap CreateBitmap() { System.Drawing.Bitmap bmp = sol1.TakeSnapShot((Node)lbNodes.SelectedItem); //FileUtils.DrawImage(func, ac1.Points, ac1.Points); image.Source = ImageUtils.Bitmap2BitmapSource(bmp); return(bmp); }