Wednesday, August 8, 2012

Save RGB color to SolidBrush object

To save a RGB color to a Solidbrush object, pass the RGB color in the solidbrush constructor.
Code:
olidBrush brush = new SolidBrush(Color.FromArgb(211, 222, 229)); 
Then apply it in your graphics method.
Code:
evs.Graphics.FillRectangle(brush, evs.CellBounds);
Cheers!

1 comments:

  1. Your code for Saving RGB color to SolidBrush object in website. Thank you

    ReplyDelete