IPB

> Line (procedure) (Graph unit)
Форум
Загрузка...
 
Час быка
Час быка
Карта Интернета
Internet Map
Яндекс.Метрика

Language:
Русский
English

 Line (procedure)     (Graph unit)


Draws a line from the point (x1, y1) to (x2, y2).

Declaration

 procedure Line(x1, y1, x2, y2: Integer);

Target

Real, Protected

Remarks

Draws a line in the style and thickness defined by SetLineStyle and uses the color set by SetColor. Use SetWriteMode to determine whether the line is copied or XOR'd to the screen.

Note that

 MoveTo(100, 100);
 LineTo(200, 200);

is equivalent to

 Line(100, 100, 200, 200);
 MoveTo(200, 200);

Use LineTo when the current pointer (CP) is at one endpoint of the line. If you want the CP updated automatically when the line is drawn, use LineRel to draw a line a relative distance from the CP. Line doesn't update the CP.

Restrictions

Must be in graphics mode. Also, for drawing a horizontal line, Bar is faster than Line.

See Also

Sample Code

 
 К началу страницы 
Тэги: Line
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 


-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"