convert from Color to brush

前端 未结 7 1965
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-08 03:39

How do I convert a Color to a Brush in C#?

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 03:59

    you can use this:

    new SolidBrush(color)
    

    where color is something like this:

    Color.Red
    

    or

    Color.FromArgb(36,97,121))
    

    or ...

提交回复
热议问题