PathBoundsY()
Syntaxe
Resultat.d = PathBoundsY()Description
Renvoie la coordonnée Y (du coin en haut et gauche) de la zone de délimitation du chemin de dessin vectoriel en cours.
Arguments
Aucun.
Valeur de retour
La coordonnée Y de la zone de délimitation.
Remarques
Le résultat est la coordonnée Y la plus petite du chemin en cours.
Exemple
If OpenWindow(0, 0, 0, 400, 200, "PathBoundsY", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) CanvasGadget(0, 0, 0, 400, 200) If StartVectorDrawing(CanvasVectorOutput(0)) ; construction du chemin MovePathCursor(150, 125) AddPathCurve(0, 270, 0, -150, 350, 180) ; coordonnées et dimensions de la zone de délimitation du chemin x = PathBoundsX() y = PathBoundsY() w = PathBoundsWidth() h = PathBoundsHeight() ; dessin du chemin VectorSourceColor($FF0000FF) StrokePath(5) ; dessin de la zone de délimitation du chemin AddPathBox(x, y, w, h) VectorSourceColor($FF000000) DashPath(2, 5) StopVectorDrawing() EndIf Repeat Event = WaitWindowEvent() Until Event = #PB_Event_CloseWindow EndIf
Voir aussi
PathBoundsX(), PathBoundsWidth(), PathBoundsHeight()
OS Supportés
Tous