目前我有这个:
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# ×1