lv_canvas_transform() function
Transform and image and store the result on a canvas.
Arguments
canvas
pointer to a canvas object to store the result of the transformation.
img
pointer to an image descriptor to transform. Can be the image descriptor of an other canvas too (`lv_canvas_get_img()`).
angle
the angle of rotation (0..3600), 0.1 deg resolution
zoom
zoom factor (256 no zoom);
offset_x
offset X to tell where to put the result data on destination canvas
offset_y
offset X to tell where to put the result data on destination canvas
pivot_x
pivot X of rotation. Relative to the source canvas Set to `source width / 2` to rotate around the center
pivot_y
pivot Y of rotation. Relative to the source canvas Set to `source height / 2` to rotate around the center
antialias
apply anti-aliasing during the transformation. Looks better but slower.
lv_canvas_transform() calls 7 functions:
![]()
lv_canvas_transform()
lv_canvas_transform() reads 9 variables and writes 9 variables:
![]()
lv_canvas_transform()