public final class DicomDevice extends ImageDevice
Represents image device that helps to save pdf document pages into Dicom format.
Constructor and Description |
---|
DicomDevice()
Initializes a new instance of the
DicomDevice class with default resolution. |
DicomDevice(int width,
int height)
Initializes a new instance of the
DicomDevice class with provided image dimensions,
with default resolution (=150). |
DicomDevice(int width,
int height,
Resolution resolution)
Initializes a new instance of the
DicomDevice class with provided image dimensions and
resolution. |
DicomDevice(PageSize pageSize)
Initializes a new instance of the
DicomDevice class with provided page size,
with default resolution (=150). |
DicomDevice(PageSize pageSize,
Resolution resolution)
Initializes a new instance of the
DicomDevice class with provided page size and
resolution. |
DicomDevice(Resolution resolution)
Initializes a new instance of the
DicomDevice class. |
Modifier and Type | Method and Description |
---|---|
void |
process(Page page,
OutputStream output)
Converts the page into Dicom and saves it in the output stream.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Performs some operation on the given page, e.g. converts page into graphic image.
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHigh
process, process
public DicomDevice()
Initializes a new instance of the DicomDevice
class with default resolution.
public DicomDevice(Resolution resolution)
Initializes a new instance of the DicomDevice
class.
resolution
- Resolution for the result image file, see Resolution
(ImageDevice.getResolution()
) class.public DicomDevice(PageSize pageSize)
Initializes a new instance of the DicomDevice
class with provided page size,
with default resolution (=150).
pageSize
- Page size of the output image.public DicomDevice(int width, int height)
Initializes a new instance of the DicomDevice
class with provided image dimensions,
with default resolution (=150).
width
- Image output width.height
- Image output height.public DicomDevice(PageSize pageSize, Resolution resolution)
Initializes a new instance of the DicomDevice
class with provided page size and
resolution.
pageSize
- Page size of the output image.resolution
- Resolution for the result image file, see Resolution
(ImageDevice.getResolution()
) class.public DicomDevice(int width, int height, Resolution resolution)
Initializes a new instance of the DicomDevice
class with provided image dimensions and
resolution.
width
- Image output width.height
- Image output height.resolution
- Resolution for the result image file, see Resolution
(ImageDevice.getResolution()
) class.public void process(Page page, OutputStream output)
Converts the page into Dicom and saves it in the output stream.
process
in class PageDevice
page
- The page to convert.output
- Output stream with image.public void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
PageDevice
Performs some operation on the given page, e.g. converts page into graphic image.
processInternal
in class PageDevice
page
- The page to process.output
- This stream contains the results of processing.Copyright © 2023 Aspose. All Rights Reserved.