Set System.Drawing.Color values

后端 未结 6 1885
耶瑟儿~
耶瑟儿~ 2021-02-04 23:13

Hi how to set R G B values in System.Drawing.Color.G ?

which is like System.Drawing.Color.G=255; is not allowed because its read o

6条回答
  •  无人共我
    2021-02-04 23:48

    You must use Color.FromArgb method to create new color structure

    var newColor = Color.FromArgb(0xCC,0xBB,0xAA);
    

提交回复
热议问题