ShapeRenderer class
ShapeRenderer class
Provides methods to render an individual Shape or GroupShape to a raster or vector image or to a Graphics object. To learn more, visit the Working with Shapes documentation article.
Inheritance: ShapeRenderer → NodeRendererBase
Constructors
Name | Description |
---|---|
ShapeRenderer(shape) | Initializes a new instance of this class. |
Properties
Name | Description |
---|---|
bounds_in_points | Gets the actual bounds of the shape in points. (Inherited from NodeRendererBase) |
opaque_bounds_in_points | Gets the opaque bounds of the shape in points. (Inherited from NodeRendererBase) |
size_in_points | Gets the actual size of the shape in points. (Inherited from NodeRendererBase) |
Methods
Name | Description |
---|---|
get_bounds_in_pixels(scale, dpi) | Calculates the bounds of the shape in pixels for a specified zoom factor and resolution. (Inherited from NodeRendererBase) |
get_bounds_in_pixels(scale, horizontal_dpi, vertical_dpi) | Calculates the bounds of the shape in pixels for a specified zoom factor and resolution. (Inherited from NodeRendererBase) |
get_opaque_bounds_in_pixels(scale, dpi) | Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution. (Inherited from NodeRendererBase) |
get_opaque_bounds_in_pixels(scale, horizontal_dpi, vertical_dpi) | Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution. (Inherited from NodeRendererBase) |
get_size_in_pixels(scale, dpi) | Calculates the size of the shape in pixels for a specified zoom factor and resolution. (Inherited from NodeRendererBase) |
get_size_in_pixels(scale, horizontal_dpi, vertical_dpi) | Calculates the size of the shape in pixels for a specified zoom factor and resolution. (Inherited from NodeRendererBase) |
save(file_name, save_options) | Renders the shape into an image and saves into a file. (Inherited from NodeRendererBase) |
save(file_name, save_options) | Renders the shape into an SVG image and saves into a file. (Inherited from NodeRendererBase) |
save(stream, save_options) | Renders the shape into an image and saves into a stream. (Inherited from NodeRendererBase) |
save(stream, save_options) | Renders the shape into an SVG image and saves into a stream. (Inherited from NodeRendererBase) |
See Also
- module aspose.words.rendering
- class NodeRendererBase