add some code

This commit is contained in:
2025-09-05 13:25:11 +08:00
parent 9ff0a99e7a
commit 3cf1229a85
8911 changed files with 2535396 additions and 0 deletions

View 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 */