DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / Zoom Method
The Matrix to use
Example

In This Topic
    Zoom Method
    In This Topic
    The Zoom factor corresponding to a given System.Drawing.Drawing2D.Matrix object
    Syntax
    'Declaration
     
    
    Public Shared Function Zoom( _
       ByVal m As System.Drawing.Drawing2D.Matrix _
    ) As System.Single
    public static System.float Zoom( 
       System.Drawing.Drawing2D.Matrix m
    )

    Parameters

    m
    The Matrix to use

    Return Value

    float/single
    Remarks
    If the Matrix is anisometropic (different zooms in different directions), then the lower of the two is used, corresponding to the behaviour of the Zoom property, which uses the specified zoom as the lower figure, and inflates the other as necessary to correct for non-square pixels.
    Example
    Matrix zoomMatrix = new Matrix();
    zoomMatrix.Scale(2.0F, 1.5F);
    float zoomFactor = DicomGlobal.Zoom(zoomMatrix);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also