DICOM provides a mechanism for supporting the use of Run Length Encoding (RLE) Compression, which is a byte oriented lossless compression scheme.
- ImageGear saves grayscale images as 8…16 bits per pixel, using "RLE Lossless" transfer syntax.
- ImageGear saves RGB images as 24 bits per pixel, using "RLE Lossless" transfer syntax.
If the source image color space is different from RGB or grayscale, or the bit depth is greater, ImageGear automatically converts image rasters to one of the supported pixel formats on saving. See Pixel Format Conversion during Image Saving for more details.
Use one of the following to save an image as DICOM RLE:
- Save the image as ImGearSavingFormats.DICOM_RLE (SaveSyntax parameter is ignored).
- Save the image as ImGearSavingFormats.DICOM and set SaveSyntax to ImGearDICOMTransferSyntaxes.RLE.