Results 1 to 7 of 7

Thread: VB for Art Coursework

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    18

    Question

    I've created a program that creates random patterns, but i don't know how to print it out on a printer.
    Please help, I need it for my art coursework!
    Please visit my website http://www.geocities.com/perfectlyperfect2000

    For a Gamer, Programming is the Ultimate Game



  2. #2
    Guest
    Use the PaintPicture method.

    Code:
    Printer.PaintPicture Picture1.Picture, 0, 0, 100, 100

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    18
    I take it 0, 0, 100, 100 are co-ordinates, well there is a small problem, the lines are random, and there are an unknown number of lines. So how would i do that?
    Isn't there a way i can say print form, instead of each line seperately.
    Please visit my website http://www.geocities.com/perfectlyperfect2000

    For a Gamer, Programming is the Ultimate Game



  4. #4
    Guest
    When you draw the lines on the Form, you can also draw them on the printer at the same time.

    Code:
    Form1.Line (100, 658)-(283, 382)
    Printer.Line (100,658)-(283, 382)

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    as long as you keep in mind that the dots on your printer are going to be a hell of a lot smaller than the dots on the form...you're fine.

  6. #6
    Guest
    Not much smaller. If you want, you can make the Pixel double the size on the screen by placing a Pixel beside and on top when you use the SetPixel. But don't worry to much about it. It's not much smaller.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    18
    Thanks, i'll let you know if it works.
    Please visit my website http://www.geocities.com/perfectlyperfect2000

    For a Gamer, Programming is the Ultimate Game



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