Class DicomOptions

  • All Implemented Interfaces:, Closeable, AutoCloseable

    public class DicomOptions
    extends ImageOptionsBase

    The DICOM file format creation options.

    Code example:

    The following example shows export to DICOM file format (single and multipage).

    String fileName = "sample.jpg";
    String inputFileNameSingle = fileName;
    String inputFileNameMultipage = "multipage.tif";
    String outputFileNameSingleDcm = "output.dcm";
    String outputFileNameMultipageDcm = "outputMultipage.dcm";
    // The next code sample converts JPEG image to DICOM file format
    try(com.aspose.imaging.Image image = com.aspose.imaging.Image.load(inputFileNameSingle))
    {, new com.aspose.imaging.imageoptions.DicomOptions());
    // DICOM format supports multipage images. You can convert GIF or TIFF images to DICOM in the same way as JPEG images
    try(com.aspose.imaging.Image imageMultiple = com.aspose.imaging.Image.load(inputFileNameMultipage))
    {, new com.aspose.imaging.imageoptions.DicomOptions());

    • Constructor Detail

      • DicomOptions

        public DicomOptions()