ImageGear .NET v25.2 - Updated
ImageGear.Formats.Vector Assembly / ImageGear.Formats.CAD Namespace / CADCamera Class / Zoom Method / Zoom(Double) Method
Amount to zoom by.




In This Topic
    Zoom(Double) Method
    In This Topic
    Zooms in/out camera.
    Syntax
    'Declaration
     
    Public Overloads Sub Zoom( _
       ByVal zoomAmount As Double _
    ) 
    'Usage
     
    Dim instance As CADCamera
    Dim zoomAmount As Double
     
    instance.Zoom(zoomAmount)
    public void Zoom( 
       double zoomAmount
    )
    public: void Zoom( 
       double zoomAmount
    ) 
    public:
    void Zoom( 
       double zoomAmount
    ) 

    Parameters

    zoomAmount
    Amount to zoom by.
    Remarks

    Zooming the camera means: moving the camera along it's "forward" axis.

    This function zooms in by percentage, so the closer you get to the center the less it zooms.

    Will invalidate camera's ImGearCADPage, so if viewing in a ImGearPageView you must do ImGearPageView.Update() to see changes.

    Example
    To zoom in zoomAmount=1.1To zoom out, zoomAmount=0.9
    See Also