locked
How to add MultiColors in SolidBrush. RRS feed

  • Question

  • User1521544757 posted

    Hi i m use

    SolidBrush drawBrush = new SolidBrush(Color.Black);

    How to add MultiColors in SolidBrush..pls help me

    Saturday, April 14, 2012 2:53 AM

Answers

  • User82244386 posted

    I think u can not do that thru constructor .

    Please check the class :   http://msdn.microsoft.com/en-us/library/system.drawing.solidbrush.solidbrush.aspx

    But u can create ur own custome color .

    Check this :- http://msdn.microsoft.com/en-us/library/8xwyx9tz.aspx

    Thank you .

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 20, 2012 6:06 AM
  • User-1673382244 posted

    Hai SriramAbi...

    SolidBrush Use's only one  color...Its mostly use Pen,arrow marks....so pls change  and use

    LinearGradientBrush and

     multiple rectangular

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 20, 2012 8:18 AM

All replies

  • User1521544757 posted

    any one he;\lp me

    Saturday, April 14, 2012 9:50 AM
  • User82244386 posted

    I think u can not do that thru constructor .

    Please check the class :   http://msdn.microsoft.com/en-us/library/system.drawing.solidbrush.solidbrush.aspx

    But u can create ur own custome color .

    Check this :- http://msdn.microsoft.com/en-us/library/8xwyx9tz.aspx

    Thank you .

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 20, 2012 6:06 AM
  • User1521544757 posted

    i m alredy search it.But its not use

    http://msdn.microsoft.com/en-us/library/system.drawing.solidbrush.solidbrush.aspx:its use only one color.

    http://msdn.microsoft.com/en-us/library/8xwyx9tz.aspx:no any propertys,methods in use multicolors..

    but thank u for u r help...

    Friday, April 20, 2012 8:10 AM
  • User-1673382244 posted

    Hai SriramAbi...

    SolidBrush Use's only one  color...Its mostly use Pen,arrow marks....so pls change  and use

    LinearGradientBrush and

     multiple rectangular

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 20, 2012 8:18 AM