Bitmap/Image compression

  • Thread starter Thread starter TN
  • Start date Start date
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.
 
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.
 
Back
Top