
## ShapeRenderer class

Provides methods to render an individual [Shape](../../aspose.words.drawing/shape/) or [GroupShape](../../aspose.words.drawing/groupshape/) 
to a raster or vector image or to a Graphics object.
To learn more, visit the [Working
            with Shapes](https://docs.aspose.com/words/python-net/working-with-shapes/) documentation article.




**Inheritance:** [ShapeRenderer](./) → [NodeRendererBase](../noderendererbase/)

### Constructors
| Name | Description |
| --- | --- |
| [ShapeRenderer(shape)](./__init__/#shapebase) | Initializes a new instance of this class. |

### Properties

| Name | Description |
| --- | --- |
| [bounds_in_points](../noderendererbase/bounds_in_points/) | Gets the actual bounds of the shape in points.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
| [opaque_bounds_in_points](../noderendererbase/opaque_bounds_in_points/) | Gets the opaque bounds of the shape in points.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
| [size_in_points](../noderendererbase/size_in_points/) | Gets the actual size of the shape in points.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |

### Methods

| Name | Description |
| --- | --- |
|[ get_bounds_in_pixels(scale, dpi)](../noderendererbase/get_bounds_in_pixels/#float_float) | Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ get_bounds_in_pixels(scale, horizontal_dpi, vertical_dpi)](../noderendererbase/get_bounds_in_pixels/#float_float_float) | Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ get_opaque_bounds_in_pixels(scale, dpi)](../noderendererbase/get_opaque_bounds_in_pixels/#float_float) | Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ get_opaque_bounds_in_pixels(scale, horizontal_dpi, vertical_dpi)](../noderendererbase/get_opaque_bounds_in_pixels/#float_float_float) | Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ get_size_in_pixels(scale, dpi)](../noderendererbase/get_size_in_pixels/#float_float) | Calculates the size of the shape in pixels for a specified zoom factor and resolution.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ get_size_in_pixels(scale, horizontal_dpi, vertical_dpi)](../noderendererbase/get_size_in_pixels/#float_float_float) | Calculates the size of the shape in pixels for a specified zoom factor and resolution.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ save(file_name, save_options)](../noderendererbase/save/#str_imagesaveoptions) | Renders the shape into an image and saves into a file.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ save(file_name, save_options)](../noderendererbase/save/#str_svgsaveoptions) | Renders the shape into an SVG image and saves into a file.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ save(stream, save_options)](../noderendererbase/save/#bytesio_imagesaveoptions) | Renders the shape into an image and saves into a stream.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |
|[ save(stream, save_options)](../noderendererbase/save/#bytesio_svgsaveoptions) | Renders the shape into an SVG image and saves into a stream.<br>(Inherited from [NodeRendererBase](../noderendererbase/)) |

### See Also

* module [aspose.words.rendering](../)
* class [NodeRendererBase](../noderendererbase/)

