Results 1 to 2 of 2

Thread: drawing class

  1. #1

    Thread Starter
    Member frix199's Avatar
    Join Date
    Dec 2005
    Location
    Thessaloniki, Greece iamthebest: True
    Posts
    59

    Smile drawing class

    hey!

    i made a drawing class...
    its simple but it can used to save space and
    tidy a bit those messy codes for drawing...

    it can do those things:
    1.declared: brush, font, pen that can simply change with a function
    2.make new: rectangle, rectanglef, point, pointf easy and tidy
    3.make random: rectangle, rectanglef, point, pointf (this can b used only for making a cool about form )

    anyone uses drawing, this could be usefull...

    don't b shy, rate me

    ciao!
    Attached Files Attached Files


    Human beings are a disease, a cancer of this planet, you are a plague, and we are the cure.

  2. #2

    Thread Starter
    Member frix199's Avatar
    Join Date
    Dec 2005
    Location
    Thessaloniki, Greece iamthebest: True
    Posts
    59

    Re: drawing class

    as for the about form:

    enter this at a timer tick event, with its interval 100 and enabled


    VB Code:
    1. Dim g As Graphics = PictureBox1.CreateGraphics
    2. Dim p as New Drawing
    3. 6Dim i As Integer = 0
    4.  
    5. d.changep(Pens.Red)
    6. g.DrawEllipse(d.p, d.rnrectf)
    7. g.DrawEllipse(d.p, d.rnrectf)
    8. g.DrawEllipse(d.p, d.rnrectf)
    9. g.DrawEllipse(d.p, d.rnrectf)
    10.  
    11.         i = i + 1
    12.  
    13.         If i = 50 Then
    14.             g.Clear(color.lightgrey)
    15.             i = 0
    16.         End If

    Last edited by frix199; Jan 24th, 2006 at 06:04 AM. Reason:


    Human beings are a disease, a cancer of this planet, you are a plague, and we are the cure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width