简体   繁体   English

使用 GetEncoder() 需要什么参考?

[英]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 .我正在尝试使用特定质量参数保存图像,并按照Microsoft Docs 中的示例进行操作

I can't find a way to use GetEncoder() like shown on this line ImageCodecInfo jpgEncoder = GetEncoder(ImageFormat.Jpeg);我找不到使用GetEncoder()的方法,如这一行所示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.我尝试转到此页面并尝试使用`System.Text.Encoding,但它似乎不起作用。

GetEncoder() is manually defied in the given example using ImageCodecInfo.GetImageEncoders(); GetEncoder()在给定的示例中使用GetEncoder()手动定义ImageCodecInfo.GetImageEncoders(); to implement it.来实施它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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