/// <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); }
/// <summary> /// Конструктор /// </summary> public ImageCreator() { CodecImageParams = GetCodeParams(); }