DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / DisplaySize Method / DisplaySize(Matrix) Method
The transformation to apply to the original image size.
Example

In This Topic
    DisplaySize(Matrix) Method
    In This Topic
    The display size in output coordinates
    Syntax
    'Declaration
     
    
    Public Overloads Function DisplaySize( _
       ByVal Matrix As System.Drawing.Drawing2D.Matrix _
    ) As System.Drawing.Size
    public System.Drawing.Size DisplaySize( 
       System.Drawing.Drawing2D.Matrix Matrix
    )

    Parameters

    Matrix
    The transformation to apply to the original image size.

    Return Value

    The transformed Size
    Remarks
    This method takes the user provided Matrix, perform Transformation on the Image and returns the Image display size in output (normally screen) coordinates.
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    Matrix transformMatrix = new Matrix();
    transformMatrix.Scale(2.0f, 2.0f);
    transformMatrix.Rotate(45);
    var displaySize = image.DisplaySize(transformMatrix); // example result {Width = 768 Height = 768}
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also