Exemplo n.º 1
0
 public byte[] EncodeQualityGdi(SD.Bitmap image, int quality, bool autoConvertToGrayscale = true)
 {
     return(EncodeCompressionRatioGdi(image, WsqCodec.QualityToCompressionRatio(quality), autoConvertToGrayscale));
 }
Exemplo n.º 2
0
 public byte[] EncodeQualityWpf(SWMI.BitmapSource image, int quality, bool autoConvertToGrayscale = true)
 {
     return(EncodeCompressionRatioWpf(image, WsqCodec.QualityToCompressionRatio(quality), autoConvertToGrayscale));
 }
Exemplo n.º 3
0
 public byte[] EncodeQuality(RawImageData image, int quality)
 {
     return(EncodeCompressionRatio(image, WsqCodec.QualityToCompressionRatio(quality)));
 }