RestoreVectorState()
Syntaxe
RestoreVectorState()Description
Restaure l'état de dessin vectoriel qui a été stocké avec l'appel à SaveVectorState().
Arguments
Aucun.
Valeur de retour
Aucune.
Exemple
If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) CanvasGadget(0, 0, 0, 400, 200) LoadFont(0, "Times New Roman", 20, #PB_Font_Bold) If StartVectorDrawing(CanvasVectorOutput(0)) VectorSourceColor(RGBA(255, 0, 0, 255)) VectorFont(FontID(0)) MovePathCursor(20, 20) DrawVectorText("Texte normal") ; Les modifications apportées à l'état de dessin au sein de ce bloc ne touchent pas les autres commandes SaveVectorState() MovePathCursor(120, 160) RotateCoordinates(120, 160, -50) VectorSourceColor(RGBA(0, 0, 255, 255)) DrawVectorText("Rotation de texte") RestoreVectorState() MovePathCursor(220, 140) DrawVectorText("Texte normal") StopVectorDrawing() EndIf Repeat Event = WaitWindowEvent() Until Event = #PB_Event_CloseWindow EndIf
Voir aussi
SaveVectorState()
OS Supportés
Tous