예제 #1
0
        /// <summary>
        /// Возвращает параметры для кодирования
        /// </summary>
        /// <returns></returns>
        private CodecImageParams GetCodeParams()
        {
            CodecImageParams codecImageParams = new CodecImageParams
            {
                CodecInfo     = GetEncoderInfo("image/jpeg"),
                EncoderParams = new EncoderParameters(1)
            };

            codecImageParams.EncoderParams.Param[0] = new EncoderParameter(Encoder.Quality, 70L);
            return(codecImageParams);
        }
예제 #2
0
 /// <summary>
 /// Конструктор
 /// </summary>
 public ImageCreator()
 {
     CodecImageParams = GetCodeParams();
 }