DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Matrix Method / Matrix(SizeF) Method
The size used for calculations
Example

In This Topic
    Matrix(SizeF) Method
    In This Topic
    Matrix specifying how the image is displayed onto display of the stated size
    Syntax
    'Declaration
     
    
    Public Overloads Function Matrix( _
       ByVal OutputSize As System.Drawing.SizeF _
    ) As System.Drawing.Drawing2D.Matrix
    public System.Drawing.Drawing2D.Matrix Matrix( 
       System.Drawing.SizeF OutputSize
    )

    Parameters

    OutputSize
    The size used for calculations

    Return Value

    Matrix
    Remarks
    A .NET object containing the image display information, like rotation, scale etc. The Size is important if the DicomObjects.Enums.ScaleMode of the image indicates stetching to fit the available space.
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    SizeF size = new SizeF(512, 512);
    var matrix = image.Matrix(size);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also