Check out example codes for "c# encode jpg hiight quality". It will help you in understanding the concepts better.

Code Example 1

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);

Learn ReactJs, React Native from akashmittal.com