DicomObjects Reference
DicomObjects Reference / DicomImage Object / SetDefaultWindows Method
In This Topic
    SetDefaultWindows Method
    In This Topic
    Resets Width and Level back to their initial values
    Visual Basic
    Public Sub SetDefaultWindows() 
    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.
    See Also