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,
VerticalAlignment verticalAlignment,
HorizontalAlignment 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.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
internal method
|
getBitmap, getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHighprocess, processpublic GraphicsDevice(Point origin, int paperWidth, int paperHeight, com.aspose.ms.System.Drawing.Rectangle marginBounds, float scaleFactor, Resolution resolution, int rotateDegrees, boolean autoSize, VerticalAlignment verticalAlignment, HorizontalAlignment horizontalAlignment, boolean isXpsPrinting)
Initializes a new instance of the GraphicsDevice class with provided image dimensions
and resolution.
origin - Top Left image coordinatepaperWidth - Width that the image is auto-sized topaperHeight - Height that the image is auto-sized tomarginBounds - Rectangle objectscaleFactor - Scale factor of the output image.resolution - Resolution for the result image file, see Resolution class.rotateDegrees - degreesautoSize - boolean valueverticalAlignment - VerticalAlignment elementhorizontalAlignment - horizontalAlignment elementisXpsPrinting - boolean valueVerticalAlignment,
HorizontalAlignmentpublic 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 - Page objectgr - internal objectpublic void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
processInternal in class PageDevicepage - Page objectoutput - internal objectCopyright © 2025 Aspose. All Rights Reserved.