GxImage: SetZoomPos

SetZoomPos

This method sets the zoom position in one step.



 Public Function SetZoomPos(
	  ByVal x As Long,
	  ByVal y As Long ) As Long

Parameters

x
The horizontal coordinate (HZoomPos) of zoom position when the view mode is vmZoom.
y
The vertical coordinate (VZoomPos) of zoom position when the view mode is vmZoom.

Return Values

On error false (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Public Function SetZoomPos(ByVal x As Long, ByVal y As Long) As Long

[Delphi] function SetZoomPos(x : Integer; y : Integer) : Integer;

[C++] long SetZoomPos(long x, long y);

Remarks

In case of changing the zoom position properties the control redraws the image at each modification. This method sets both the horizontal and vertical zoom position and redraws the image only once.
This is a display control method.

See Also

Class GxImage Overview GxImage Properties GxImage Methods SetWindowRect SLine