Bitmap/Image compression

T

TN

I was wondering, is it possible to tell Bitmap to use some kind of
compressed format, such as a JPEG? I am sending Bitmap over a network
and was interesting in compressing it.
 
N

Nicholas Paldino [.NET/C# MVP]

Well, how are you compressing it? Also, if you are concerned with the
integrity of the data, you might not want to use JPG, as it is a lossy
compression algorithm.

I would just serialize the bitmap to a memory stream, and then use one
of the compression streams in the System.IO.Compression namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top