Searched refs:CANVAS_HEIGHT (Results 1 – 3 of 3) sorted by relevance
/lvgl-3.7.0/examples/widgets/canvas/ |
D | lv_example_canvas_1.c | 5 #define CANVAS_HEIGHT 150 macro 27 static lv_color_t cbuf[LV_CANVAS_BUF_SIZE_TRUE_COLOR(CANVAS_WIDTH, CANVAS_HEIGHT)]; in lv_example_canvas_1() 30 lv_canvas_set_buffer(canvas, cbuf, CANVAS_WIDTH, CANVAS_HEIGHT, LV_IMG_CF_TRUE_COLOR); in lv_example_canvas_1() 40 static lv_color_t cbuf_tmp[CANVAS_WIDTH * CANVAS_HEIGHT]; in lv_example_canvas_1() 46 img.header.h = CANVAS_HEIGHT; in lv_example_canvas_1() 49 …lv_canvas_transform(canvas, &img, 120, LV_IMG_ZOOM_NONE, 0, 0, CANVAS_WIDTH / 2, CANVAS_HEIGHT / 2… in lv_example_canvas_1()
|
D | lv_example_canvas_2.c | 5 #define CANVAS_HEIGHT 50 macro 16 static lv_color_t cbuf[LV_CANVAS_BUF_SIZE_INDEXED_1BIT(CANVAS_WIDTH, CANVAS_HEIGHT)]; in lv_example_canvas_2() 20 lv_canvas_set_buffer(canvas, cbuf, CANVAS_WIDTH, CANVAS_HEIGHT, LV_IMG_CF_INDEXED_1BIT); in lv_example_canvas_2()
|
D | lv_example_canvas_2.py | 2 CANVAS_HEIGHT = 50 variable 22 cbuf= bytearray(LV_CANVAS_BUF_SIZE_INDEXED_1BIT(CANVAS_WIDTH, CANVAS_HEIGHT)) 26 canvas.set_buffer(cbuf, CANVAS_WIDTH, CANVAS_HEIGHT, lv.img.CF.INDEXED_1BIT)
|