(Medical only) Only TIFF and DICOM file
formats are capable of saving images that have been window-leveled. Images can
be window-leveled by using WindowLevel
and specifying RasterWindowLevelMode.PaintAndProcessing
for the flags parameter or by loading an image from a file format that
supports window-leveling. If a window-leveled image is saved as any other file
format, the image data will be converted before being saved. The conversion is
done as follows:
the data is converted to the full bit range (LowBit = 0, HighBit = BitsPerPixel – 1) the LUT is converted so first entry = 0 (BLACK) and last entry = 255 (WHITE).
When the images are saved as DICOM or TIFF, no conversion is made.
Whenever you save an image containing a region as a TIFF file format, the region is also saved. Note, however, that the ability to save a region inside a TIFF file must be unlocked. This requires a Document Imaging or Medical Imaging toolkit.