DicomDevice

Inheritance: java.lang.Object, com.aspose.pdf.devices.Device, com.aspose.pdf.devices.PageDevice, com.aspose.pdf.devices.ImageDevice

public final class DicomDevice extends ImageDevice

Represents image device that helps to save pdf document pages into Dicom format.

Constructors

ConstructorDescription
DicomDevice()Initializes a new instance of the DicomDevice class with default resolution.
DicomDevice(Resolution resolution)Initializes a new instance of the DicomDevice class.
DicomDevice(PageSize pageSize)Initializes a new instance of the DicomDevice class with provided page size, with default resolution (=150).
DicomDevice(int width, int height)Initializes a new instance of the DicomDevice class with provided image dimensions, with default resolution (=150).
DicomDevice(PageSize pageSize, Resolution resolution)Initializes a new instance of the DicomDevice class with provided page size and resolution.
DicomDevice(int width, int height, Resolution resolution)Initializes a new instance of the DicomDevice class with provided image dimensions and resolution.

Methods

MethodDescription
process(Page page, OutputStream output)Converts the page into Dicom and saves it in the output stream.
processInternal(Page page, System.IO.Stream output)

DicomDevice()

public DicomDevice()

Initializes a new instance of the DicomDevice class with default resolution.

DicomDevice(Resolution resolution)

public DicomDevice(Resolution resolution)

Initializes a new instance of the DicomDevice class.

Parameters:

ParameterTypeDescription
resolutionResolutionResolution for the result image file, see Resolution (ImageDevice#getResolution) class.

DicomDevice(PageSize pageSize)

public DicomDevice(PageSize pageSize)

Initializes a new instance of the DicomDevice class with provided page size, with default resolution (=150).

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.

DicomDevice(int width, int height)

public DicomDevice(int width, int height)

Initializes a new instance of the DicomDevice class with provided image dimensions, with default resolution (=150).

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.

DicomDevice(PageSize pageSize, Resolution resolution)

public DicomDevice(PageSize pageSize, Resolution resolution)

Initializes a new instance of the DicomDevice class with provided page size and resolution.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
resolutionResolutionResolution for the result image file, see Resolution (ImageDevice#getResolution) class.

DicomDevice(int width, int height, Resolution resolution)

public DicomDevice(int width, int height, Resolution resolution)

Initializes a new instance of the DicomDevice class with provided image dimensions and resolution.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
resolutionResolutionResolution for the result image file, see Resolution (ImageDevice#getResolution) class.

process(Page page, OutputStream output)

public void process(Page page, OutputStream output)

Converts the page into Dicom and saves it in the output stream.

Parameters:

ParameterTypeDescription
pagePageThe page to convert.
outputjava.io.OutputStreamOutput stream with image.

processInternal(Page page, System.IO.Stream output)

public void processInternal(Page page, System.IO.Stream output)

Performs some operation on the given page, e.g. converts page into graphic image.

Parameters:

ParameterTypeDescription
pagePage
outputcom.aspose.ms.System.IO.Stream