ImageDevice class
ImageDevice class
Represents rendering to raster formats: jpeg, png, bmp, gif, tiff.
Inheritance: ImageDevice
→
DeviceAdapter
→
Device
The ImageDevice type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes a new instance of the ImageDevice class. |
init | Initializes a new instance of the ImageDevice class by rendering options and stream provider. |
init | Initializes a new instance of the ImageDevice class. |
init | Initializes a new instance of the ImageDevice class by rendering options and output file name. |
init | Initializes a new instance of the ImageDevice class. |
init | Initializes a new instance of the ImageDevice class by rendering options and output stream. |
Properties
Property | Description |
---|---|
adapted_device | Gets or sets the adapted device. See IDevice . |
options | Gets the rendering options. |
graphic_context | Gets the graphic context. |
Methods
Method | Description |
---|---|
save_graphic_context | Pushes a copy of the entire graphics context onto the stack. |
restore_graphic_context | Restores the entire graphics context to its former value by popping it from the stack. |
begin_document | Begins rendering of the document. |
end_document | Ends rendering of the document. |
begin_page | Begins rendering of the new page. |
end_page | Ends rendering of the current page. |
begin_element | Begins rendering of the element. |
end_element | Ends rendering of the element. |
close_path | Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath. If the current subpath is already closed, “ClosePath” does nothing. This operator terminates the current subpath. Appending another segment to the current path begins a new subpath, even if the new segment begins at the endpoint reached by the “ClosePath” method. |
move_to | Begins a new subpath by moving the current point to coordinates of the parameter pt, omitting any connecting line segment. If the previous path construction method in the current path was also “MoveTo”, the new “MoveTo” overrides it; no vestige of the previous “MoveTo” operation remains in the path. |
line_to | Appends a straight line segment from the current point to the point (pt). The new current point is pt. |
add_rect | Appends a rectangle to the current path as a complete subpath. |
cubic_bezier_to | Appends a cubic Bézier curve to the current path. The curve extends from the current point to the point pt2, using pt1 and pt2 as the Bézier control points. The new current point is pt3. |
stroke | Strokes a line along the current path. The stroked line follows each straight or curved segment in the path, centered on the segment with sides parallel to it. Each of the path’s subpaths is treated separately. This method terminates current path. |
fill | Fills the entire region enclosed by the current path. If the path consists of several disconnected subpaths, it fills the insides of all subpaths, considered together. This method terminates current path. |
clip | Modifies the current clipping path by intersecting it with the current path, using the FillMode rule to determine the region to fill. This method terminates current path. |
stroke_and_fill | Strokes and fill current path. This method terminates current path. |
fill_text | Fills the specified text string at the specified location. |
stroke_text | Strokes the specified text string at the specified location. |
draw_image | Draws the specified image. |
flush | Flushes all data to output stream. |
See Also
- module
aspose.svg.rendering.image
- class
Device
- class
DeviceAdapter
- class
IDevice
- class
ImageDevice