小编Xri*_*rio的帖子

如何将字符串转换为 ImageFormat 类属性?

目前我有这个:

printscreen.Save(myOutputLocation + myImageName + myImageExtension, ImageFormat.Png);
Run Code Online (Sandbox Code Playgroud)

但是,我想用字符串指定 ImageFormat 类属性,但我无法让它工作:

string myString = textBox1.Text;
printscreen.Save(myOutputLocation + myImageName + myImageExtension, ImageFormat.myString);
Run Code Online (Sandbox Code Playgroud)

c#

5
推荐指数
1
解决办法
2040
查看次数

标签 统计

c# ×1