目前我有这个:
printscreen.Save(myOutputLocation + myImageName + myImageExtension, ImageFormat.Png);
然而,我想用一个字符串来指定ImageFormat类的属性,但我无法让它工作:
string myString = textBox1.Text;
printscreen.Save(myOutputLocation + myImageName + myImageExtension, ImageFormat.myString);
.GetValue(null)
”更改为“.GetValue(str, null)
”。 - Xrio