public final class EmfDevice extends ImageDevice
Represents image device that helps to save pdf document pages into emf.
Constructor and Description |
---|
EmfDevice()
Initializes a new instance of the
EmfDevice class with default resolution of raster
image written to emf. |
EmfDevice(int width,
int height)
Initializes a new instance of the
EmfDevice class with provided image dimensions, and
default resolution for the raster image written to emf (=150)
|
EmfDevice(int width,
int height,
Resolution resolution)
Initializes a new instance of the
JpegDevice class with provided image dimensions,
and resolution for the raster image written to emf. |
EmfDevice(PageSize pageSize)
Initializes a new instance of the
EmfDevice class with provided page size, and
default resolution for the raster image written to emf (=150)
|
EmfDevice(PageSize pageSize,
Resolution resolution)
Initializes a new instance of the
JpegDevice class with provided page size, and
resolution for the raster image written to emf. |
EmfDevice(Resolution resolution)
Initializes a new instance of the
EmfDevice class. |
Modifier and Type | Method and Description |
---|---|
void |
process(Page page,
OutputStream output)
Converts the page into emf and saves it in the output stream.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Converts the page into emf and saves it in the output stream.
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHigh
process, process
public EmfDevice()
Initializes a new instance of the EmfDevice
class with default resolution of raster
image written to emf.
public EmfDevice(Resolution resolution)
Initializes a new instance of the EmfDevice
class.
resolution
- Resolution for the raster image written to emf, see Resolution
class.public EmfDevice(int width, int height)
Initializes a new instance of the EmfDevice
class with provided image dimensions, and
default resolution for the raster image written to emf (=150)
width
- Image output width.height
- Image output height.public EmfDevice(PageSize pageSize)
Initializes a new instance of the EmfDevice
class with provided page size, and
default resolution for the raster image written to emf (=150)
pageSize
- Page size of the output image.public EmfDevice(int width, int height, Resolution resolution)
Initializes a new instance of the JpegDevice
class with provided image dimensions,
and resolution for the raster image written to emf.
width
- Image output width.height
- Image output height.resolution
- Resolution for the for the raster image written to emf, see Resolution
class.public EmfDevice(PageSize pageSize, Resolution resolution)
Initializes a new instance of the JpegDevice
class with provided page size, and
resolution for the raster image written to emf.
pageSize
- Page size of the output image.resolution
- Resolution for the for the raster image written to emf, see Resolution
class.public void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
Converts the page into emf and saves it in the output stream.
processInternal
in class PageDevice
page
- The page to convert.output
- Output stream with emf image.public void process(Page page, OutputStream output)
Converts the page into emf and saves it in the output stream.
process
in class PageDevice
page
- The page to convert.output
- Output stream with emf image.