System.Drawing.Brush from System.Drawing.Color

后端 未结 2 640
死守一世寂寞
死守一世寂寞 2020-12-05 23:31

I\'m developing a WinForm Printing application for our company.

When the document is printed, I need to take the System.Drawing.Color property of each C

相关标签:
2条回答
  • 2020-12-05 23:44

    Why not the GDI+ brush?

    http://msdn.microsoft.com/en-us/library/system.drawing.solidbrush.solidbrush.aspx

    The other one is for WPF.

    0 讨论(0)
  • 2020-12-05 23:59

    Use the SolidBrush class:

    using (SolidBrush brush = new SolidBrush(yourColor)) {
        // ...
    }
    
    0 讨论(0)
提交回复
热议问题