Accusoft.ImagXpress13.Net
ZoomToFit Method




A ZoomToFitType option.
Zoom the image display to fit within the ImageXView control.
Syntax
'Declaration
 
Public Sub ZoomToFit( _
   ByVal zoomToFitType As ZoomToFitType _
) 
'Usage
 
Dim instance As ImageXView
Dim zoomToFitType As ZoomToFitType
 
instance.ZoomToFit(zoomToFitType)
public void ZoomToFit( 
   ZoomToFitType zoomToFitType
)
public: void ZoomToFit( 
   ZoomToFitType zoomToFitType
) 
public:
void ZoomToFit( 
   ZoomToFitType zoomToFitType
) 

Parameters

zoomToFitType
A ZoomToFitType option.
Remarks

This is a one time zoom unlike some of the AutoResize property settings which will repeatedly set the ZoomFactor. In fact, the AutoResize property has precedence over the ZoomToFit method and not the other way around. Calling the ZoomToFit method with ZoomToFitType.FitHeight when the AutoResize property is set to AutoResizeType.FitWidth will do absolutely nothing. Therefore it is best to use this method when the AutoResize property is set to AutoResizeType.CropImage or AutoResizeType.CropImageToControl.

See Also

Reference

ImageXView Class
ImageXView Members

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback