lv_draw_image_private.h

API reference for lv_draw_image_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_draw_image.h

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)
Parameters
NameTypeDescription
reslv_area_t *store the coordinates here
wint32_twidth of the rectangle to transform
hint32_theight of the rectangle to transform
angleint32_tangle of rotation
scale_xuint16_tzoom in x direction, (256 no zoom)
scale_yuint16_tzoom in y direction, (256 no zoom)
pivotconst lv_point_t *x,y pivot coordinates of rotation

Structs

struct

_lv_draw_image_sup_t

MemberTypeDescription
alpha_colorlv_color_t
paletteconst lv_color32_t *
palette_sizeuint32_t

Dependencies

How is this guide?

Last updated on

On this page