DicomObjects.NET8 Documentation
DicomObjects Namespace / DicomImage Class / SetDefaultWindows() Method



In This Topic
    SetDefaultWindows() Method
    In This Topic
    Recalculates the default windows used by DicomObjects as if the image had just been loaded
    Syntax
    'Declaration
     
    
    Public Sub SetDefaultWindows() 
    'Usage
     
    
    Dim instance As DicomImage
     
    instance.SetDefaultWindows()
    public void SetDefaultWindows()
    public:
    void SetDefaultWindows(); 
    Remarks
    Where possible, DicomObjects sets the initial values of Width and Level using attributes (0028,1050) & (0028,1051) in the file itself, but where these are not present, it calculates the values by measuring the range of pixel values. The values may of course be subsequently changed, and this method is therefore useful either to reset to initial values, or to calculate suitable "guess" values when new images are created, or when the pixel data itself is changed.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also