GDI+

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can i get a dashed brush in GDI+? I only see SolidBrush and SystemBrush
and TextureBrush. Is this yet another gaping hole?
 
Hi
Check this out

System.Drawing.Drawing2D.HatchBrush hb = new
System.Drawing.Drawing2D.HatchBrush
(System.Drawing.Drawing2D.HatchStyle.DashedVertical,
System.Drawing.Color.Black, System.Drawing.Color.White);

System.Drawing.Pen pn = new System.Drawing.Pen(hb, 3);

You can use the HatchStyle enumeration to specify the type
u want. if u want it, MS has it!!!!!!!!!! :)

regards,

sr
 
Back
Top