lv_draw_image_private.h
API reference for lv_draw_image_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_draw_image.h
Summary
Functions
lv_image_buf_get_transformed_area
Get the area of a rectangle if its rotated and scaled
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)| Name | Type | Description |
|---|---|---|
res | lv_area_t * | store the coordinates here |
w | int32_t | width of the rectangle to transform |
h | int32_t | height of the rectangle to transform |
angle | int32_t | angle of rotation |
scale_x | uint16_t | zoom in x direction, (256 no zoom) |
scale_y | uint16_t | zoom in y direction, (256 no zoom) |
pivot | const lv_point_t * | x,y pivot coordinates of rotation |
lv_draw_image_normal_helper
Can be used by draw units to handle the decoding and prepare everything for the actual image rendering
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, const lv_image_decoder_args_t *decoder_args)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a draw task |
draw_dsc | const lv_draw_image_dsc_t * | the draw descriptor of the image |
coords | const lv_area_t * | the absolute coordinates of the image |
draw_core_cb | lv_draw_image_core_cb | a callback to perform the actual rendering |
decoder_args | const lv_image_decoder_args_t * | the args passed to image decoders, or NULL for defaults |
lv_draw_image_tiled_helper
Can be used by draw units for TILED images to handle the decoding and prepare everything for the actual image 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, const lv_image_decoder_args_t *decoder_args)| Name | Type | Description |
|---|---|---|
t | lv_draw_task_t * | pointer to a draw task |
draw_dsc | const lv_draw_image_dsc_t * | the draw descriptor of the image |
coords | const lv_area_t * | the absolute coordinates of the image |
draw_core_cb | lv_draw_image_core_cb | a callback to perform the actual rendering |
decoder_args | const lv_image_decoder_args_t * | the args passed to image decoders, or NULL for defaults |
Structs
struct
_lv_draw_image_sup_t
| Member | Type | Description |
|---|---|---|
alpha_color | lv_color_t | |
palette | const lv_color32_t * | |
palette_size | uint32_t |
Dependencies
Last updated on