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)
internal method
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHigh
process, process
public 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 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
,
HorizontalAlignment
public 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 PageDevice
page
- Page objectgr
- internal objectpublic void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
processInternal
in class PageDevice
page
- Page objectoutput
- internal object