Compress(Bitmap+CompressFormat, Int32, Stream) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Write a compressed version of the bitmap to the specified outputstream.
[Android.Runtime.Register("compress", "(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z", "")] public bool Compress (Android.Graphics.Bitmap.CompressFormat format, int quality, System.IO.Stream stream);
member this.Compress : Android.Graphics.Bitmap.CompressFormat * int * System.IO.Stream -> bool
The format of the compressed image
Hint to the compressor, 0-100. 0 meaning compress for small size, 100 meaning compress for max quality. Some formats, like PNG which is lossless, will ignore the quality setting
The outputstream to write the compressed data.