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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top