Top "Bitmapsource" questions

Bitmapsource represents a single, constant set of pixels at a certain size and resolution.

Is there a good way to convert between BitmapSource and Bitmap?

As far as I can tell the only way to convert from BitmapSource to Bitmap is through unsafe code... Like …

c# .net wpf bitmap bitmapsource
How to save a WPF BitmapSource image to a file?

In WPF, the System.Windows.Clipboard.getImage() function returns a BitmapSource object. As a newbie in WPF coming from a …

wpf bitmapsource
BitmapSource to BitmapImage

I need to parse the content of Clipboard.GetImage() (a BitmapSource) to a BitmapImage. Does anyone knows how can this …

c# .net wpf bitmapimage bitmapsource
fast converting Bitmap to BitmapSource wpf

I need to draw an image on the Image component at 30Hz. I use this code : public MainWindow() { InitializeComponent(); Messenger.…

c# wpf bitmap copy bitmapsource
create an empty BitmapSource in C#

What is the fastest (few lines of code and low resource usage) way to create an empty (0x0 px or 1…

c# wpf bitmapsource
Copying from BitmapSource to WritableBitmap

I am trying to copy a part of a BitmapSource to a WritableBitmap. This is my code so far: var …

c# wpf bitmapsource writablebitmap
How do you make sure WPF releases large BitmapSource from Memory?

System: Windows XP SP3, .NET 3.5, 4GB RAM, Dual 1.6gHz I have a WPF application that loads and transitions (using Storyboard …

wpf memory-leaks bitmap bitmapsource
BitmapSource.CopyPixels->byte[]->BitmapSource how to do this simple?

How to do efficient BitmapSource to byte[] and vice versa conversion in C#?

c# wpf pixels bitmapsource
InteropBitmap to BitmapImage

I'm trying to Convert a Bitmap (SystemIcons.Question) to a BitmapImage so I can use it in a WPF Image …

c# wpf bitmapimage bitmapsource interopbitmapimage
Image loading memory leak with C#

I have a memory leak issue in my application which loads a large amount of images. I'm rather new to …

c# .net wpf memory-leaks bitmapsource