DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / CellSize Method
The viewer to use for sizing etc.






In This Topic
    CellSize Method
    In This Topic
    The size of the cell within which this image would be displayed in a particular viewer
    Syntax
    'Declaration
     
    
    Public Function CellSize( _
       ByVal Viewer As DicomViewer _
    ) As System.Drawing.Size
    'Usage
     
    
    Dim instance As DicomImage
    Dim Viewer As DicomViewer
    Dim value As System.Drawing.Size
     
    value = instance.CellSize(Viewer)
    public System.Drawing.Size CellSize( 
       DicomViewer Viewer
    )
    public function CellSize( 
        Viewer: DicomViewer
    ): System.Drawing.Size; 
    public function CellSize( 
       Viewer : DicomViewer
    ) : System.Drawing.Size;
    public: System.Drawing.Size CellSize( 
       DicomViewer* Viewer
    ) 
    public:
    System.Drawing.Size CellSize( 
       DicomViewer^ Viewer
    ) 

    Parameters

    Viewer
    The viewer to use for sizing etc.

    Return Value

    The size, in pixels
    Remarks
    If the Area property of the image is empty, then this will always return the same size (area of the viewer divided by rows and columms), but if an explicit area is specified, then that is used instead.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also