Returns the horizontal pixel corresponding to the given screen percentage.
<display>
Name | Type | Description |
---|---|---|
percent | integer | The horizontal percentage of the screen. |
monitor | integer | The monitor number (optional). |
The following displays the pixel value corresponding to the horizontal center of the screen on the second monitor:
<text sometext>
/ items= ("pixels = <% display.getpixelsx(50, 2) %>")
</text>
The following displays the pixel value corresponding to the right side of the screen on the first (default) monitor:
<page somepage>
pixels = <% display.getpixelsx(100) %>
</page>