Accusoft Prizm Viewer Control v10.0
SetImageLocation Method
A double value which represents the x (horizontal) coordinate value at which to locate the image.
A double value which represents the y (vertical) coordinate value at which to locate the image.
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

PrizmControl Object  | PrizmControl Members  | ImageLocationCenterX Property  | ImageLocationCenterY Property  | SetImageRectangle Method

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback