PercentageToPixel Method

Converts a screen percentage (i.e., a window location) to pixel coordinates that are relative to the picture's coordinate system. This is useful if the user is working with an ActiveX control which requires inputs in the form of pixels.

Syntax

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

Properties

The PercentageToPixel 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 top screen percentage coordinate and returns the converted pixel coordinate.

plfLeft

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

plfHeight

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

plfWidth

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

 

Example

Applies To