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!
Printable View
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!
Use the PaintPicture method.
Code:Printer.PaintPicture Picture1.Picture, 0, 0, 100, 100
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.
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)
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.
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.
Thanks, i'll let you know if it works.