ooodev.format.inner.direct.draw.fill.area.pattern module
- class ooodev.format.inner.direct.draw.fill.area.pattern.Pattern(*, bitmap=None, name='', tile=True, stretch=False, auto_name=False)[source]
Bases:
PatternClass for Area Fill Pattern.
See also
New in version 0.9.3.
- __init__(*, bitmap=None, name='', tile=True, stretch=False, auto_name=False)[source]
Constructor
- Parameters:
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 pattern. This is also the name that is used to store bitmap in LibreOffice Bitmap Table.
tile (bool, optional) – Specified if bitmap is tiled. Defaults to
True.stretch (bool, optional) – Specifies if bitmap is stretched. Defaults to
False.auto_name (bool, optional) – Specifies if
nameis ensured to be unique. Defaults toFalse.
- Return type:
None
Note
If
auto_nameisFalsethen a bitmap for a given name is only required the first call. All subsequent call of the same name will retrieve the bitmap form the LibreOffice Bitmap Table.See also