Graphics

need to change the colour of brush using graphics

Page 1 of 1

3 Replies - 656 Views - Last Post: 05 November 2008 - 09:18 PM Rate Topic: -----

#1 sandysandy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 05-November 08

Graphics

Post icon  Posted 05 November 2008 - 05:37 AM

 
  Dim g As Drawing.Graphics = e.Graphics
		Dim pn As Pen = New Pen(Color.Green, 10)
		g.DrawLine(pn, 100, 10, 30, 10)
		g.DrawEllipse(New Pen(Color.Purple, 20), 20, 40, 20, 20)

Is This A Good Question/Topic? 0
  • +

Replies To: Graphics

#2 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1376
  • View blog
  • Posts: 10,951
  • Joined: 06-February 08

Re: Graphics

Posted 05 November 2008 - 08:38 AM

Moved to VB.NET
Was This Post Helpful? 0
  • +
  • -

#3 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8374
  • View blog
  • Posts: 31,123
  • Joined: 12-June 08

Re: Graphics

Posted 05 November 2008 - 10:34 AM

Is there a question in here or just a general statement?
Was This Post Helpful? 0
  • +
  • -

#4 sandysandy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 05-November 08

Re: Graphics

Posted 05 November 2008 - 09:18 PM

View Postgabehabe, on 5 Nov, 2008 - 07:38 AM, said:

Moved to VB.NET



hai modi,

Thanks for ur reply. Its a general statement.can u explain me how to change the colour of brush for drawing shapes.I gone through books but i cant understand clearly.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1