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
boundsInPoints2Gets the actual bounds of the shape in points.
(Inherited from NodeRendererBase)
opaqueBoundsInPoints2Gets the opaque bounds of the shape in points.
(Inherited from NodeRendererBase)
sizeInPoints2Gets the actual size of the shape in points.
(Inherited from NodeRendererBase)

Methods

NameDescription
getBoundsInPixels2(scale, dpi)Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.
(Inherited from NodeRendererBase)
getBoundsInPixels2(scale, horizontalDpi, verticalDpi)Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.
(Inherited from NodeRendererBase)
getOpaqueBoundsInPixels2(scale, dpi)Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.
(Inherited from NodeRendererBase)
getOpaqueBoundsInPixels2(scale, horizontalDpi, verticalDpi)Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.
(Inherited from NodeRendererBase)
save(fileName, saveOptions)Renders the shape into an image and saves into a file.
(Inherited from NodeRendererBase)
save(fileName, saveOptions)Renders the shape into an SVG image and saves into a file.
(Inherited from NodeRendererBase)
save(stream, saveOptions)Renders the shape into an image and saves into a stream.
(Inherited from NodeRendererBase)
save(stream, saveOptions)Renders the shape into an SVG image and saves into a stream.
(Inherited from NodeRendererBase)

See Also