PixelToPercentage Method

Converts pixel coordinates that are relative to the picture's coordinate system to a screen percentage (i.e., a window location).

Syntax

object.PixelToPercentage plfTop, plfLeft, [plfHeight], [plfWidth]

Properties

The PixelToPercentage method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

plfTop

Double. Specifies the pixel top coordinate and returns the converted screen percentage coordinate.

plfLeft

Double. Specifies the pixel left coordinate and returns the converted screen percentage coordinate.

plfHeight

Double. (Optional) Specifies the height of the page in pixel coordinates and returns the height in screen percentage.

plfWidth

Double. (Optional) Specifies the width of the page in pixel coordinates and returns the width in screen percentage.

 

Example

Applies To