ImageGear .NET v25.2 - Updated
ImageGear.Formats.Vector Assembly / ImageGear.Formats.CAD Namespace / CADCamera Class / Zoom Method / Zoom(Double,Double,Double) Method
Amount to zoom by.
X-coordinate for point of zoom target.
Y-coordinate for point of zoom target.




In This Topic
    Zoom(Double,Double,Double) Method
    In This Topic
    Zooms in camera, to position in screen-space.
    Syntax
    'Declaration
     
    Public Overloads Sub Zoom( _
       ByVal zoomAmount As Double, _
       ByVal x As Double, _
       ByVal y As Double _
    ) 
    'Usage
     
    Dim instance As CADCamera
    Dim zoomAmount As Double
    Dim x As Double
    Dim y As Double
     
    instance.Zoom(zoomAmount, x, y)
    public void Zoom( 
       double zoomAmount,
       double x,
       double y
    )
    public: void Zoom( 
       double zoomAmount,
       double x,
       double y
    ) 
    public:
    void Zoom( 
       double zoomAmount,
       double x,
       double y
    ) 

    Parameters

    zoomAmount
    Amount to zoom by.
    x
    X-coordinate for point of zoom target.
    y
    Y-coordinate for point of zoom target.
    Remarks

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

    This function zooms in by percentage, so the closer you get the 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