2.3.2. Images (layout.elements.image)

class layout.elements.image.Image(filename, min_width, fixed_size=False, horizontal_align=0, vertical_align=10)

Bases: layout.managers.root.LayoutElement

Represents an image to be displayed at a fixed aspect ratio.

get_minimum_size(data)

How small can the element be? Should return a Point.

render(rect, data)

Asks the element to render itself.