public final class GraphicsDevice extends ImageDevice
Represents image device that helps to render pdf document pages into graphics.
| Constructor and Description |
|---|
GraphicsDevice(Point origin,
int paperWidth,
int paperHeight,
com.aspose.ms.System.Drawing.Rectangle marginBounds,
float scaleFactor,
Resolution resolution,
int rotateDegrees,
boolean autoSize,
int verticalAlignment,
int horizontalAlignment,
boolean isXpsPrinting)
Initializes a new instance of the
GraphicsDevice class with provided image dimensions and resolution. |
| Modifier and Type | Method and Description |
|---|---|
void |
process(Page page,
com.aspose.ms.System.Drawing.Graphics gr)
renders page on the graphics
|
void |
process(Page page,
com.aspose.ms.System.IO.Stream output)
Perfoms some operation on the given page, e.g. converts page into graphic image.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Perfoms some operation on the given page, e.g. converts page into graphic image.
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, setConvertFontsToUnicodeTTF, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptionsprocess, processpublic GraphicsDevice(Point origin, int paperWidth, int paperHeight, com.aspose.ms.System.Drawing.Rectangle marginBounds, float scaleFactor, Resolution resolution, int rotateDegrees, boolean autoSize, int verticalAlignment, int horizontalAlignment, boolean isXpsPrinting)
Initializes a new instance of the GraphicsDevice class with provided image dimensions and resolution.
origin - Top Left image coordinatewidth - Image output width.height - Image output height.paperWidth - Width that the image is auto-sized topaperHeight - Height that the image is auto-sized toscaleFactor - Scale factor of the outpot image.resolution - Resolution for the result image file, see Resolution class.rotateDegrees - degreespublic void process(Page page, com.aspose.ms.System.IO.Stream output)
Perfoms some operation on the given page, e.g. converts page into graphic image.
page - The page to process.output - This stream contains the results of processing.public void process(Page page, com.aspose.ms.System.Drawing.Graphics gr)
renders page on the graphics
process in class PageDevicepage - gr - public void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
PageDevicePerfoms some operation on the given page, e.g. converts page into graphic image.
processInternal in class PageDevicepage - The page to process.output - This stream contains the results of processing.Copyright © 2018 Aspose. All Rights Reserved.