DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage3D Class / CurrentPixelScale Method
Size of current display area






In This Topic
    CurrentPixelScale Method (DicomImage3D)
    In This Topic
    Current Pixel Size
    Syntax
    'Declaration
     
    
    Public Function CurrentPixelScale( _
       ByVal DisplaySize As System.Drawing.Size _
    ) As System.Drawing.SizeF
    'Usage
     
    
    Dim instance As DicomImage3D
    Dim DisplaySize As System.Drawing.Size
    Dim value As System.Drawing.SizeF
     
    value = instance.CurrentPixelScale(DisplaySize)
    public System.Drawing.SizeF CurrentPixelScale( 
       System.Drawing.Size DisplaySize
    )
    public function CurrentPixelScale( 
        DisplaySize: System.Drawing.Size
    ): System.Drawing.SizeF; 
    public function CurrentPixelScale( 
       DisplaySize : System.Drawing.Size
    ) : System.Drawing.SizeF;
    public: System.Drawing.SizeF CurrentPixelScale( 
       System.Drawing.Size DisplaySize
    ) 
    public:
    System.Drawing.SizeF CurrentPixelScale( 
       System.Drawing.Size DisplaySize
    ) 

    Parameters

    DisplaySize
    Size of current display area

    Return Value

    Size per pixel in mm (X and Y may differ)
    Remarks
    The DicomImage.DisplaySize method may be used to obtain the correct value of DisplaySize
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also