Hello,
Does anyone know if there is a faster way to save BMPs in C#?
Currently, I'm using this:
MemoryStream ms = new MemoryStream();
picture.Save(ms , System.Drawing. Imaging.ImageFo rmat.Png);
But it's taking around 80 ms. Is there a way to improve that? I'm writing a screen capture application, so coupled with the time it takes to capture the desktop (around 80 ms also), it's not as responsive as I'd like it to be. I'm also sending the images off over the network, so smaller file sizes are better.
TIA.
Vinoj
Does anyone know if there is a faster way to save BMPs in C#?
Currently, I'm using this:
MemoryStream ms = new MemoryStream();
picture.Save(ms , System.Drawing. Imaging.ImageFo rmat.Png);
But it's taking around 80 ms. Is there a way to improve that? I'm writing a screen capture application, so coupled with the time it takes to capture the desktop (around 80 ms also), it's not as responsive as I'd like it to be. I'm also sending the images off over the network, so smaller file sizes are better.
TIA.
Vinoj
Comment