/ Published in: C#
Converting BitmapSource to Bitmap in C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private System.Drawing.Bitmap BitmapFromSource(BitmapSource bitmapsource) { System.Drawing.Bitmap bitmap; { enc.Frames.Add(BitmapFrame.Create(bitmapsource)); enc.Save(outStream); } return bitmap; }
URL: http://caringprogrammer.blogspot.com/