Returns the vertical pixel corresponding to the given location or size.
<display>
extent
Name | Type | Description |
---|---|---|
y | extent | The vertical location or size value. |
monitor | integer | Optional. The monitor number. |
Both pixels and percentages increase from top to bottom, with the top of the screen corresponding to a value of 0.
The following displays the pixel value corresponding to the vertical middle of the screen on the second monitor:
<text myText>
/ items= ("pixels = <% display.getPixelsY(50%, 2) %>")
</text>
The following displays the pixel value corresponding to the bottom side of the screen on the first (default) monitor:
<page myPage>
pixels = <% display.getPixelsY(100%) %>
</page>