Accusoft Prizm Viewer Control v10.0
SetImageLocation Method
See Also  Send comments on this topic.
x
A double value which represents the x (horizontal) coordinate value at which to locate the image.
y
A double value which represents the y (vertical) coordinate value at which to locate the image.
PrizmControl Object : SetImageLocation Method

Glossary Item Box

Description

Sets the location to be viewed.

Syntax

Visual Basic
Public Sub SetImageLocation( _
   ByVal x As Double, _
   ByVal y As Double _
) 

Parameters

x
A double value which represents the x (horizontal) coordinate value at which to locate the image.
y
A double value which represents the y (vertical) coordinate value at which to locate the image.

Remarks

This method positions the image so that the position specified is centered as closely as possible to the center of the viewing window.

If the image is fully visible in the image window, no position change occurs. If the current image display is larger than the image window, the position attempts to center the image to the location set as closely as possible.

When this method 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, calling SetImageLocation (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.