add some code
This commit is contained in:
20
managed_components/lvgl__lvgl/examples/assets/img_svg_img.c
Normal file
20
managed_components/lvgl__lvgl/examples/assets/img_svg_img.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "../../lvgl.h"
|
||||
|
||||
#if LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_svg_data[] = "<svg width=\"12cm\" height=\"4cm\" viewBox=\"0 0 1200 400\">"
|
||||
"<rect x=\"500\" y=\"100\" width=\"200\" height=\"200\" fill=\"red\" stroke=\"blue\" stroke-width=\"10\"/></svg>";
|
||||
|
||||
const lv_image_dsc_t img_svg_img = {
|
||||
.header = {
|
||||
.cf = LV_COLOR_FORMAT_NATIVE,
|
||||
.w = 450,
|
||||
.h = 150,
|
||||
.stride = 0,
|
||||
},
|
||||
.data_size = sizeof(img_svg_data),
|
||||
.data = img_svg_data,
|
||||
};
|
||||
|
||||
#endif /* LV_BUILD_EXAMPLES */
|
||||
Reference in New Issue
Block a user