ZoomToRect method (Main Control)
Builder Syntax |
int ZoomToRect (int nLeft, int nTop, int nWidth, int nHeight); |
Delphi Syntax |
ZoomToRect (nLeft, nTop, nWidth, nHeight: Integer): Integer; |
Overview |
Refer to Displaying an Image |
Remarks
Adjusts the destination display rectangle to zoom in on the part of the image that you specify.
You specify a rectangle in the Main Control's client area. This method increases the dimensions of the destination display rectangle so that your rectangle is enlarged and centered to fit the client area. If scroll bars are turned on, they are adjusted to the new size and position.
Because of a Windows limitation, destination rectangle measurements(in pixels), cannot exceed the maximum value of an integer. On WIN32 systems, however, this is rarely a problem.
See Also
Topics: |