Search
 
SCRIPT & CODE EXAMPLE
 

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

PREVIOUS NEXT
Code Example
Csharp :: unity random number 
Csharp :: c# string tob64 
Csharp :: if in dictionary c# 
Csharp :: get enum name 
Csharp :: unity icons 
Csharp :: function in c# to do addition 
Csharp :: What is the difference between String and string in C#? 
Csharp :: c# enum to int 
Csharp :: scenemanager.loadscene 
Csharp :: get folder path winforms 
Csharp :: C# calculate sum of digits of a number 
Csharp :: assign color to value in c# 
Csharp :: char contains c# 
Csharp :: can you have multiple statement in a case c# 
Csharp :: how to pass string value to enum in c# 
Csharp :: unity button onclick 
Csharp :: c# xor byte array 
Csharp :: unity string lowercase 
Csharp :: CS0101 Unity Error Code 
Csharp :: c# random sleep 
Csharp :: play sound in unity c# 
Csharp :: what is botnet attack 
Csharp :: c# convert datetime to unix timestamp 
Csharp :: wpf color picker 
Csharp :: asp.net textarea disable resize 
Csharp :: c# isdigit mehod 
Csharp :: unity setparent 
Csharp :: get percentage c# 
Csharp :: c# merge two xml files 
Csharp :: c# quit button script 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =