This is the default mode for saving DICOM images with JPEG compression in ImageGear. In this mode:
- ImageGear saves grayscale images as either 8 bits per pixel, using "JPEG Baseline (Process 1)" transfer syntax, or as 9..12 bits per pixel, using "JPEG Extended (Process 2 & 4)" transfer syntax.
- ImageGear saves RGB images as 24 bits per pixel, using "JPEG Baseline (Process 1)" transfer syntax.
If the source image colorspace 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.
As part of JPEG Lossy compression process, ImageGear converts RGB rasters into YCbCr colorspace (or YCC in DICOM terminology) during saving. This conversion is fully encapsulated into the ImageGear JPEG codec; the application should not convert images to YCbCr before saving them to JPEG or DICOM JPEG. |
Use one of these ways to save an image as DICOM JPEG Baseline or Extended:
- Save the image as ImGearSavingFormats Enumeration.DICOM_JPEG (SaveSyntax parameter is ignored)
- Save the image as ImGearSavingFormats Enumeration.DICOM and set SaveSyntax to ImGearDICOMTransferSyntaxes.JPEG_LOSSY
- Save the image as ImGearSavingFormats Enumeration.DICOM and set SaveSyntax to ImGearDICOMTransferSyntaxes.JPEG_EXTENDED_PR_2_4