Accusoft ImagXpress 12
ZoomToFit Method
See Also  Send comments on this topic.
ZoomFitType
An enumZoomFit value which determines the type of zoom fit to perform.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : ZoomToFit Method

Glossary Item Box

Description

Zoom factor to fit current image within the ImagXpress control.

Syntax

Visual Basic
Public Sub ZoomToFit( _
   ByVal ZoomFitType As enumZoomFit _
) 

Parameters

ZoomFitType
ValueDescription
ZOOMFIT_BESTFit such that the entire image appears within the control.
ZOOMFIT_HEIGHTFit to the height of the control.
ZOOMFIT_WIDTHFit to the width of the control.
An enumZoomFit value which determines the type of zoom fit to perform.

Remarks

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.

See Also

©2013. Accusoft Corporation. All Rights Reserved.