ooodev.format.inner.direct.chart2.series.data_series.area.img module
- class ooodev.format.inner.direct.chart2.series.data_series.area.img.Img(chart_doc, *, bitmap=None, name='', mode=ImgStyleKind.TILED, size=None, position=None, pos_offset=None, tile_offset=None, auto_name=False)[source]
Bases:
ImgClass for Chart Data Series Area Fill Image.
New in version 0.9.4.
- __init__(chart_doc, *, bitmap=None, name='', mode=ImgStyleKind.TILED, size=None, position=None, pos_offset=None, tile_offset=None, auto_name=False)[source]
Constructor
- Parameters:
chart_doc (XChartDocument) – Chart document.
bitmap (XBitmap, optional) – Bitmap instance. If
nameis not already in the Bitmap Table then this property is required.name (str, optional) – Specifies the name of the image. This is also the name that is used to store bitmap in LibreOffice Bitmap Table.
mode (ImgStyleKind, optional) – Specifies the image style, tiled, stretched etc. Default
ImgStyleKind.TILED.size (SizePercent, SizeMM, optional) – Size in percent (
0 - 100) or size inmmunits.position (RectanglePoint) – Tiling position of Image.
pos_offset (Offset, optional) – Tiling position offset.
tile_offset (OffsetColumn, OffsetRow, optional) – The tiling offset.
auto_name (bool, optional) – Specifies if
nameis ensured to be unique. Defaults toFalse.
- Return type:
None
Note
If
auto_nameisFalsethen a bitmap for a givennameis only required the first call. All subsequent call of the samenamewill retrieve the bitmap form the LibreOffice Bitmap Table.