Format:
Recent snippets matching tags of BitmapImage
public static BitmapImage _ToBitmapImage(this Bitmap bitmap) { var _MemoryStream = new MemoryStream(); bitmap.Save(_MemoryStream, ImageFormat.Png); var _BitmapImage = new BitmapImage(); _BitmapImage.BeginInit(); _BitmapImage.StreamSource = _MemoryStream; _BitmapImage.EndInit();
93 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
