lv_nanovg_image_cache.h
API reference for lv_nanovg_image_cache.h
Summary
Functions
lv_nanovg_image_cache_get_handle
Get the image handle from the cache, create a new one if not found.
int lv_nanovg_image_cache_get_handle(struct _lv_draw_nanovg_unit_t *u, const void *src, lv_color32_t color, int image_flags, lv_image_header_t *header)| Name | Type | Description |
|---|---|---|
u | struct _lv_draw_nanovg_unit_t * | pointer to the nanovg unit |
src | const void * | the source image data |
color | lv_color32_t | the color to apply |
image_flags | int | the image flags |
header | lv_image_header_t * | the image header to fill (can be NULL) |
Returns: int — the image handle, or -1 on failure
Dependencies
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_kconfig.hlv_draw.hlv_draw_buf.hlv_draw_image.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_image_decoder.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on