EncoderParameters encoderParams = new EncoderParameters(1);
            EncoderParameter param = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 100);
            encoderParams.Param[0] = param;
            ImageCodecInfo codec = ImageCodecInfo.GetImageEncoders()[1];
            emptyBmp.Save("D:\\111.jpg", codec, encoderParams);
            emptyBmp.Dispose();
这个jpg编码器会报 参数错误异常 但是bmp文件没问题
posted on 2011-03-23 13:10  asight  阅读(381)  评论(1编辑  收藏  举报