Device class
Device class
This class encapsulates rendering of document to abstract device. Rendering of the document is performed page by page.
The Device type exposes the following members:
Properties
Property | Description |
---|---|
creator | Returns or specifies creator of resulting device output. |
size | Returns or specifies a size of the page. |
is_direct_rgb | Indicates whether device uses direct RGB mode, that is RGB. |
background | Returns or specifies current background of the page. |
opacity | Returns or specifies current opacity. |
stroke | Returns or specifies current stroke. |
paint | Returns or specifies current paint. |
opacity_mask | Returns or specifies current opacity mask. |
char_tm | Returns or specifies current characters transform. |
text_rendering_mode | Returns or specifies current text rendering mode. |
text_stroke_width | Returns or specifies current text stroke width. |
version | Current device version. |
Methods
Method | Description |
---|---|
rotate | Rotate the current transformation matrix. Calls writeTransform(Transform). Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis. |
rotate | Rotate the current transformation matrix around a point. |
draw_polyline | Draws a polyline. |
draw_polyline | Draws a polyline. |
draw_polygon | Draws a polygon. |
draw_polygon | Draws a poligone. |
fill_polygon | Fills a poligone. |
fill_polygon | Fills a poligone. |
re_new | Reset device to initial state for whole document. Used for reseting output stream. |
get_property | Gets a value of string property. |
get_property_color | Gets a value of color property. |
get_property_rectangle | Gets a value of rectangle property. |
get_property_margins | Gets a value of margin property. |
get_property_size | Gets a value of size property. |
get_property_int | Gets a value of integer property. |
get_property_double | Gets a value of double property. |
is_property | Gets a value of boolean property. |
create | Creates a copy of this device. |
set_transform | Specifies current transform. |
get_transform | Gets current transform. |
transform | Transforms the current transformation matrix. Calls writeTransform(Transform) |
translate | Translates the current transformation matrix. Calls writeTransform(Transform). |
scale | Scales the current transformation matrix. Calls writeTransform(Transform). |
shear | Shears the current transformation matrix. Calls writeTransform(Transform). |
init_clip | Initializes clip of the device. |
set_clip | Specifies the clip of the device. |
draw | Draws a path. |
fill | Fills a path. |
draw_string | Draws a string at given point. |
draw_image | Draws an image with assigned transform and background. |
start_document | Makes necessary preparation of device before start rendering of document. |
end_document | Makes necessary preparation of device after the document has been rendered. |
dispose | Disposes the device. |
reset | Reset the device to initial state for a page. |
write_comment | Writes a comment. |
draw_arc | Draws an arc. |
draw_line | Draws a line segment. |
draw_oval | Draws an oval. |
draw_rect | Draws a rectangle. |
draw_round_rect | Draws a round rectangle. |
fill_arc | Fills an arc. |
fill_oval | Fills an oval. |
fill_rect | Fills a rectangle. |
fill_round_rect | Fills a round rectangle. |
See Also
- module
aspose.page