Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# encode jpg hiight quality

var encoder = ImageCodecInfo.GetImageEncoders().First(c => c.FormatID == ImageFormat.Jpeg.Guid);
var encParams = new EncoderParameters() { Param = new[] { new EncoderParameter(Encoder.Quality, 90L) } };
image.Save(path, encoder, encParams);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #encode #jpg #hiight #quality
ADD COMMENT
Topic
Name
5+9 =