Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BitmapSource img = BitmapFrame.Create(uri);
- BitmapSource img = BitmapFrame.Create(uri,BitmapCreateOptions.None,BitmapCacheOption.OnLoad);
- MemoryStream data = new MemoryStream(File.ReadAllBytes(file));
- BitmapSource bitmap = BitmapFrame.Create(data);
- Stream stream = File.OpenRead(filename);
- Bitmap template = new Bitmap(stream); // or (Bitmap) Bitmap.FromStream(stream)
- stream.Close();
Add Comment
Please, Sign In to add comment