The Student Room Group

Pascal help!

hey guys!
can anyone please tell me how to draw a VERTICAL line in pascal?
there is this draw line procedure but i'm getting confused in coding! :frown:
Hi there,

While you're waiting for an answer, did you know we have 300,000 study resources that could answer your question in TSR's Learn together section?

We have everything from Teacher Marked Essays to Mindmaps and Quizzes to help you with your work. Take a look around.

If you're stuck on how to get started, try creating some resources. It's free to do and can help breakdown tough topics into manageable chunks. Get creating now.

Thanks!

Not sure what all of this is about? Head here to find out more.
Reply 2
Original post by R07
hey guys!
can anyone please tell me how to draw a VERTICAL line in pascal?
there is this draw line procedure but i'm getting confused in coding! :frown:


You didn't specify where/on what you'd like to draw the line on, how long the line should be etc...
Reply 3
If you're wanting to draw bitmaps, just use:

bmp.Canvas.MoveTo(x, y);
bmp.Canvas.LineTo(x, y);

So for a vertical line, try something like:

bmp.Canvas.MoveTo(0,10);
bmp.Canvas.LineTo(0,-10);
Reply 4
Don't forget to add

Uses
SysUtils, graphics;

Quick Reply

Latest

Trending

Trending