DÉFINIT LA POSITION ACTUELLE (X,Y) DU TRACÉ D'UNE LIGNE OU D'UNE POLYLINE
ACTION
La commande 2D_POLY_FROM X,Y définit sur l'objet système "cible 2D" (sélectionné par 2D_TARGET_IS), la position actuelle (X,Y) du tracé.
X et Y sont exprimé en pixels et l'origine des coordonnées (0,0) est le coin supérieur gauche de l'objet système.
Remarque: Une commande ultérieure 2D_POLY_TO X1,Y1 dessinera alors une ligne du point (X,Y) jusqu'au point (X1,Y1).
Pour dessiner une polyline (ligne avec des segments multiples), on enchaîne simplement des commandes 2D_POLY_TO Xn,Yn
Par défaut, l'objet système "cible 2D" est : FORM numéro 0.
SYNTAXE :
2D_POLY_FROM X,Y
UTILISATION ERREUR EXEMPLE
rem dessiner une ligne à partir du point (10,20)
2d_poly_from 10,20
rem jusqu'au point (110,120)
2d_poly_to 110,120
2D_POLY_FROM
2D_POLY_FROM X,Y
EN RAPPORT
2D_ARC
2D_LINE
2D_POLY_TO
2D_POINT
2D_PEN_COLOR
2D_PEN_DASH
2D_PEN_DASH_DOT
2D_PEN_DASH_DOT_DOT
2D_PEN_DOT
2D_PEN_SOLID
2D_PEN_WIDTH