DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / DownloadStatus Method / DownloadStatus(Rectangle,Single,Int32) Method
The Area of the image needed
The required zoom for the image
The requested frame number
Example

In This Topic
    DownloadStatus(Rectangle,Single,Int32) Method
    In This Topic
    The download status of an image compared to specific attributes of the image
    Syntax
    'Declaration
     
    
    Public Overloads Function DownloadStatus( _
       ByVal Area As System.Drawing.Rectangle, _
       ByVal Zoom As System.Single, _
       ByVal Frame As System.Integer _
    ) As ProgressiveStatus
    public ProgressiveStatus DownloadStatus( 
       System.Drawing.Rectangle Area,
       System.float Zoom,
       System.int Frame
    )

    Parameters

    Area
    The Area of the image needed
    Zoom
    The required zoom for the image
    Frame
    The requested frame number

    Return Value

    The status relative to the parameters
    Remarks
    For this overload, the Area is specified in pixels
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm);
                        
    var imageWidth = Convert.ToUInt16(image.DataSet[Keyword.Columns].Value);
    var imageHeight = Convert.ToUInt16(image.DataSet[Keyword.Rows].Value);
    Size size = new Size(imageWidth, imageHeight);
                        
    var status = image.DownloadStatus(new Rectangle(new Point(0, 0), size), 1, 1); // checking status of entire image
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also