可用的
string color = ColorPicker.Color.ToString();
(我使用Cyotek.Windows.Forms.ColorPicker)它
随后被保存到一个 txt 文件中。在 txt 文件中,我们有一行:Color [A=255, R=255, G=0, B=203]. 当我运行程序时,我阅读了这一行。
问题:
- 如何转换
string为Color? - 如何在转换过程中检查:
Color [Empty]?
添加:
可用的
string color = ColorPicker.Color.ToString();
(我使用Cyotek.Windows.Forms.ColorPicker)它
随后被保存到一个 txt 文件中。在 txt 文件中,我们有一行:Color [A=255, R=255, G=0, B=203]. 当我运行程序时,我阅读了这一行。
问题:
string为Color?Color [Empty]?添加:
不知何故你可以解析