IPB

> FillPoly (procedure) (Graph unit)
Чат
Форум
Загрузка...
 

Language:
Русский
English

 FillPoly (procedure)     (Graph unit)


Fills a polygon, using the scan converter

Declaration

 procedure FillPoly(NumPoints: Word; var PolyPoints);

Target

Real, Protected

Remarks

PolyPoints is an untyped parameter that contains the coordinates of each intersection in the polygon. NumPoints specifies the number of coordinates in PolyPoints. A coordinate consists of two words, an X and a Y value.

FillPoly calculates all the horizontal intersections, and then fills the polygon using the current fill style and color defined by SetFillStyle or SetFillPattern. The outline of the polygon is drawn in the current line style and color as set by SetLineStyle.

If an error occurs while filling the polygon, GraphResult returns a value of grNoScanMem.

Restrictions

Must be in graphics mode.

See Also

Sample Code

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

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



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