---
Product: Aspose.Words
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/words/python/imagerenderstate
---

# ImageRenderState

## Overview

`ImageRenderState` is a class in Aspose.Words FOSS for Python.

Accumulator threaded through paragraph rendering for inline shapes.

This class declares 2 methods for ImageRenderState objects in Python programs.
Available methods include: `render_inline_shape`, `set_section_margins`.
Public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.
Properties: `doc_pr_offset`, `emit_wps_shapes`, `images`, `media_name_prefix`, `rel_id_prefix`, `section_left_margin_mm`, and 1 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `images` | `list[ImageEntry]` | Read/Write | Gets or sets the images. |
| `section_left_margin_mm` | `float` | Read/Write | Gets or sets the section left margin mm. |
| `section_top_margin_mm` | `float` | Read/Write | Gets or sets the section top margin mm. |
| `media_name_prefix` | `str` | Read/Write | Gets or sets the media name prefix. |
| `rel_id_prefix` | `str` | Read/Write | Gets or sets the rel id prefix. |
| `doc_pr_offset` | `int` | Read/Write | Gets or sets the doc pr offset. |
| `emit_wps_shapes` | `bool` | Read/Write | Gets or sets the emit wps shapes. |

## Methods

| Signature | Description |
|-----------|-------------|
| `render_inline_shape(shape: ldm.Shape, rels: Optional[dict], num_id_map: Optional[Mapping[int, int]], bookmark_state: Optional[BookmarkState], style_pf_map: Optional[Mapping[str, ldm.ParagraphFormat]], style_id_map: Optional[Mapping[str, str]], style_font_map: Optional[Mapping[str, ldm.Font]])` → `Optional[str]` | Emit ``<w:r><w:drawing>…</w:drawing></w:r>`` for ``shape``. |
| `set_section_margins(page_setup: "ldm.PageSetup")` | Update the cached section margins. |

## See Also

- [Aspose.Words for Python — Enterprise API Reference](https://reference.aspose.com/words/python-net/)