ooodev.format.inner.direct.write.image.image.rotation module

class ooodev.format.inner.direct.write.image.image.rotation.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