color to brush

  • Thread starter Thread starter boxim
  • Start date Start date
B

boxim

having a moment,

cant you just
Brush br = new Brush(Color.Black);??? saying you cant cos it's an abstract
class

need to get to a brush from a color

tia
sam martin
 
cant you just
Brush br = new Brush(Color.Black);??? saying you cant cos it's an abstract
class

need to get to a brush from a color

You need to use SolidBrush for a solid color. You can also gain access to a
colored brush with:

Brush br = Brushes.Black;

(which exists in the System.Drawing namespace).

n!
 
Back
Top