Saving Window-Leveled Bitmaps
(Document and Medical Imaging toolkits)
Only TIFF and DICOM file formats are capable of saving bitmaps that have been window-leveled. Bitmaps can be window-leveled by calling the L_WindowLevel(pBitmap, WINDOWLEVEL_PAINT_AND_PROCESSING) function or by loading a bitmap from a file format that supports window-leveling. If a window-leveled bitmap is saved as any other file format, the bitmap 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 bitmaps are saved as DICOM or TIFF, no conversion is made.
NOTE: To save a region inside a TIFF file, you must have an unlocked Vector, Document, or Medical Imaging license.