AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : ZoomToFit Method |
Visual Basic |
---|
Public Sub ZoomToFit( _ ByVal ZoomFitType As enumZoomFit _ ) |
Value | Description |
---|---|
ZOOMFIT_BEST | Fit such that the entire image appears within the control. |
ZOOMFIT_HEIGHT | Fit to the height of the control. |
ZOOMFIT_WIDTH | Fit to the width of the control. |
Upon successful completion of this method, the ZoomFactor property will be set to the zoom factor resulting from the ZoomToFit method.
The AutoSize property has precedence over the ZoomToFit method and not the other way around. Calling the ZoomToFit method with ZOOMFIT_HEIGHT when the AutoSize property is set to ISIZE_FitWidth will do absolutely nothing. Therefore it is best to use this method when the AutoSize property is ISIZE_CropImage or ISIZE_CropImageToControl.