lv_draw_image_private.h
Functions
-
void lv_draw_image_normal_helper(lv_draw_task_t *t, const lv_draw_image_dsc_t *draw_dsc, const lv_area_t *coords, lv_draw_image_core_cb draw_core_cb)
Can be used by draw units to handle the decoding and prepare everything for the actual image rendering
- Parameters:
t – pointer to a draw task
draw_dsc – the draw descriptor of the image
coords – the absolute coordinates of the image
draw_core_cb – a callback to perform the actual rendering
-
void lv_draw_image_tiled_helper(lv_draw_task_t *t, const lv_draw_image_dsc_t *draw_dsc, const lv_area_t *coords, lv_draw_image_core_cb draw_core_cb)
Can be used by draw units for TILED images to handle the decoding and prepare everything for the actual image rendering
- Parameters:
t – pointer to a draw task
draw_dsc – the draw descriptor of the image
coords – the absolute coordinates of the image
draw_core_cb – a callback to perform the actual rendering
-
void lv_image_buf_get_transformed_area(lv_area_t *res, int32_t w, int32_t h, int32_t angle, uint16_t scale_x, uint16_t scale_y, const lv_point_t *pivot)
Get the area of a rectangle if its rotated and scaled
- Parameters:
res – store the coordinates here
w – width of the rectangle to transform
h – height of the rectangle to transform
angle – angle of rotation
scale_x – zoom in x direction, (256 no zoom)
scale_y – zoom in y direction, (256 no zoom)
pivot – x,y pivot coordinates of rotation
-
struct _lv_draw_image_sup_t