mikroSDK Reference Manual
lv_draw_img.h
Go to the documentation of this file.
1
6#ifndef LV_DRAW_IMG_H
7#define LV_DRAW_IMG_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "lv_img_decoder.h"
17#include "lv_img_buf.h"
18#include "../misc/lv_style.h"
19
20/*********************
21 * DEFINES
22 *********************/
23
24/**********************
25 * MACROS
26 **********************/
27
28/**********************
29 * TYPEDEFS
30 **********************/
31
32typedef struct {
33
34 int16_t angle;
35 uint16_t zoom;
36 lv_point_t pivot;
37
38 lv_color_t recolor;
39 lv_opa_t recolor_opa;
40
41 lv_opa_t opa;
42 lv_blend_mode_t blend_mode : 4;
43
44 int32_t frame_id;
45 uint8_t antialias : 1;
47
48struct _lv_draw_ctx_t;
49
50/**********************
51 * GLOBAL PROTOTYPES
52 **********************/
53
54void lv_draw_img_dsc_init(lv_draw_img_dsc_t * dsc);
62void lv_draw_img(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * dsc, const lv_area_t * coords,
63 const void * src);
64
65
66void lv_draw_img_decoded(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * dsc,
67 const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t color_format);
68
77lv_img_src_t lv_img_src_get_type(const void * src);
78
84uint8_t lv_img_cf_get_px_size(lv_img_cf_t cf);
85
91bool lv_img_cf_is_chroma_keyed(lv_img_cf_t cf);
92
98bool lv_img_cf_has_alpha(lv_img_cf_t cf);
99
100#ifdef __cplusplus
101} /*extern "C"*/
102#endif
103
104#endif /*LV_DRAW_IMG_H*/
uint8_t lv_img_cf_get_px_size(lv_img_cf_t cf)
bool lv_img_cf_is_chroma_keyed(lv_img_cf_t cf)
lv_img_src_t lv_img_src_get_type(const void *src)
void lv_draw_img(struct _lv_draw_ctx_t *draw_ctx, const lv_draw_img_dsc_t *dsc, const lv_area_t *coords, const void *src)
bool lv_img_cf_has_alpha(lv_img_cf_t cf)
Definition lv_draw.h:59
Definition lv_area.h:43
Definition lv_draw_img.h:32
Definition lv_area.h:37