Accusoft Prizm Viewer Control v10.0
InitialImageLocation Property
See Also  Send comments on this topic.
PrizmControl Object : InitialImageLocation Property

Glossary Item Box

Description

Gets and sets the initial image position as close to the center of the viewing window as possible.

Property Type

Read-write property

Syntax

Visual Basic
Public Property InitialImageLocation As String

Return Type

A string value which represent the image position.

Remarks

The default value is a string of numbers "0,0". The string contains two numeric string values separated by a comma, separating the image coordinates where the image should be centered initially.

This property is used when the ImageScalingMethod is set to PV_ScalingMethod_FactorLocation (2) or PV_ScalingMethod_RatioLocation (4).

Set this property in the Object/Embed tag or during the OnInitialize event.

The scope of this property depends on where it is set. For more information, refer to the Initial Property Scope topic.

When this property is used, the values returned by ImageLocationCenterX and IamgeLocationCenterY may not contain the same value due to how the image is displayed in the image window.  For example, if the image is fully visible in the window, setting InitialImageLocation to “0,0” would result in ImageLocationCenterX and ImageLocationCenterY containing values other than the values specified in this property, since the center of the image location would not be (0, 0).

See Also

©2015. Accusoft Corporation. All Rights Reserved.