# WebPages $ Display Functions

The following $ functions can be called via script when a Display element is on a WebPage:

Function | Property Parameters (with Data Type) | Description
--- | --- | ---
$WebPages.WebPage.Display.CancelEditGraphic | N/A | This command cancels edits made to a graphic. If there are multiple Buttons with Edit Graphic commands on a WebPage, a single Button with the Cancel Edit Graphic command will work with all of the Edit Graphic Buttons.
$WebPages.WebPage.Display.EditGraphic | address : String | This function is tied to a specific VisionPro Vision Tool graphic, typically for editing a Region of Interest (ROI). After enabling the Edit Graphic command, the address property must be specified, which defines which vision tool's ROI the graphic corresponds to.
$WebPages.WebPage.Display.EndEditGrapic | N/A | This command accepts any changes made to a graphic, and saves the changes to the vision system. If there are multiple Buttons with Edit Graphic commands on a WebPage, a single Button with the End Edit Graphic command will work with all of the Edit Graphic Buttons.
$WebPages.WebPage.Display.Pan | x: Double, y: Double | Provides the ability to move the image horizontally and vertically. X and Y coordinates can be specified.
$WebPages.WebPage.Display.PanTo | x: Double, y: Double | Provides the ability to move to a specific pixel location, horizontally and vertically, within the image. X and Y coordinates can be specified; the center of the graphic will be at the specified coordinates.
$WebPages.WebPage.Display.Rotate90CCW |  | Rotates the image 90° counter-clockwise.
$WebPages.WebPage.Display.Rotate90CW |  | Rotates the image 90° clockwise.
$WebPages.WebPage.Display.ZoomIn |  | Provides the ability to zoom in the image.
$WebPages.WebPage.Display.ZoomOut |  | Provides the ability to zoom out of the image.
$WebPages.WebPage.Display.ZoomToFill |  | Provides an automatic scaling option to scale the image will fill the entire display area.
$WebPages.WebPage.Display.ZoomToFit |  | Provides an automatic scaling option to scale the image as large as possible, while still displaying the entire image. If the aspect ratio of the display area differs from the image, this option will result in either horizontal or vertical blank areas within the display.
$WebPages.WebPage.Display.ZoomToFixed |  | Provides a manual scaling mode option in which the scale factor between the image and display is fixed, independent of the display size.