ooodev.format.writer.direct.image.image package

Module contents

class ooodev.format.writer.direct.image.image.Flip(vertical=None, horizontal=None)[source]

Bases: StyleBase

Image Flip

New in version 0.9.0.

__init__(vertical=None, horizontal=None)[source]

Constructor

Parameters:
  • printable (bool, optional) – Specifies if Frame can be printed. Default True.

  • vertical (bool | None) –

  • horizontal (FlipKind | None) –

Return type:

None

classmethod from_obj(obj)[source]
classmethod from_obj(obj, **kwargs)
classmethod from_obj(obj, **kwargs)

Gets instance from object

Parameters:

obj (object) – UNO Object.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Instance that represents Image Flip Options.

Return type:

Properties

property prop_Horizontal: FlipKind | None

Gets/Sets Horizontal flip option

Return type:

FlipKind | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_vertical: bool | None

Gets/Sets Vertical flip option

Return type:

bool | None

class ooodev.format.writer.direct.image.image.Rotation(rotation=0)[source]

Bases: StyleBase

Image Rotation

New in version 0.9.0.

__init__(rotation=0)[source]

Constructor

Parameters:

rotation (int, Angle, optional) – Specifies if the image rotation. Default 0.

Return type:

None

classmethod from_obj(obj)[source]
classmethod from_obj(obj, **kwargs)
classmethod from_obj(obj, **kwargs)

Gets instance from object

Parameters:

obj (object) – UNO Object.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Instance that represents Image Flip Options.

Return type:

Properties

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_rotation: Angle

Gets/Sets Rotation angle of the shape in degrees.

Property can be set by passing int or Angle.

Return type:

Angle