Online documentation, manuals and tutorials
< All Topics
Print

Image

Description

This Widget displays an image.

More info

Properties

Specific

Image

ObjectReference

The name of the bitmap to be displayed.

Change pivot point (default is center)

Boolean

If enabled then specify the image pivot point X and Y coordinate.

Pivot X

Number

X position of the center of rotation. If left blank, the center of rotation is in the middle of the Widget.

Pivot Y

Number

Y position of the center of rotation. If left blank, the center of rotation is in the middle of the Widget.

Scale

Number

Scale factor. Set factor to 256 to disable zooming. A larger value enlarges the images (e.g. 512 double size), a smaller value shrinks it (e.g. 128 half size). Fractional scale works as well, e.g. 281 for 10% enlargement.

Rotation

Number

Rotation angle, angle has 0.1 degree precision, so for 45.8° set 458. Image is rotated around the centar of rotation which is defined with Pivot X and Pivot Y properties.

Inner align

Enum

By default the image widget’s width and height will be sized automatically according to the image source. If the widget’s width or height is set the larger value the thisinner_align property tells how to align the image source inside the widget.

Examples

  • LVGL Widgets Demo
Page content