scistag.imagestag.canvas.CanvasState

class CanvasState(offset=(0.0, 0.0), clipping=(0.0, 0.0, 0.0, 0.0))[source]

Bases: object

Defines the canvas’s current transformation state

Methods

Attributes

__annotations__

__dataclass_fields__

__dataclass_params__

__dict__

__doc__

__hash__

__module__

__weakref__

list of weak references to the object (if defined)

clipping

The bounding in pixels to which the painting shall be limited (if supported by the function

offset

The offset in pixels by which all content shall be moved

clipping: tuple[float, float, float, float] = (0.0, 0.0, 0.0, 0.0)

The bounding in pixels to which the painting shall be limited (if supported by the function

offset: tuple[float, float] = (0.0, 0.0)

The offset in pixels by which all content shall be moved