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: ShapeRendererNodeRendererBase

Constructors

NameDescription
ShapeRenderer(shape)Initializes a new instance of this class.

Properties

NameDescription
bounds_in_pointsGets the actual bounds of the shape in points.
(Inherited from NodeRendererBase)
opaque_bounds_in_pointsGets the opaque bounds of the shape in points.
(Inherited from NodeRendererBase)
size_in_pointsGets the actual size of the shape in points.
(Inherited from NodeRendererBase)

Methods

NameDescription
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