简体   繁体   中英

What reference is needed to use GetEncoder()?

I am trying to save an image with a specific quality parameters and following this example from Microsoft Docs .

I can't find a way to use GetEncoder() like shown on this line ImageCodecInfo jpgEncoder = GetEncoder(ImageFormat.Jpeg);

What reference do I need to use this function?

I tried going to this page and tried to use `System.Text.Encoding, but it doesn't seem to work.

GetEncoder() is manually defied in the given example using ImageCodecInfo.GetImageEncoders(); to implement it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM