Where is imgHand in the Gauge example

I fiddle with lvgl and I wonder where is the declaration of img_hand in the Gauge example

#include "../../../lv_examples.h"

void lv_ex_gauge_2(void)
    /*Describe the color for the needles*/
    static lv_color_t needle_colors[3];
    needle_colors[0] = LV_COLOR_BLUE;
    needle_colors[1] = LV_COLOR_ORANGE;
    needle_colors[2] = LV_COLOR_PURPLE;


    /*Create a gauge*/
    lv_obj_t * gauge1 = lv_gauge_create(lv_scr_act(), NULL);
    lv_gauge_set_needle_count(gauge1, 3, needle_colors);
    lv_obj_set_size(gauge1, 200, 200);
    lv_obj_align(gauge1, NULL, LV_ALIGN_CENTER, 0, 0);
    lv_gauge_set_needle_img(gauge1, &img_hand, 4, 4);
    /*Allow recoloring of the images according to the needles' color*/
    lv_obj_set_style_local_image_recolor_opa(gauge1, LV_GAUGE_PART_NEEDLE, LV_STATE_DEFAULT, LV_OPA_COVER);

    /*Set the values*/
    lv_gauge_set_value(gauge1, 0, 10);
    lv_gauge_set_value(gauge1, 1, 20);
    lv_gauge_set_value(gauge1, 2, 30);


Hi there,

i guess that the examples are quite minimalistic.
You are probably looking for this file:

This was probably generated with this provided online tool:

You will have to generate an image and then properly link it during build in order to access it via LV_IMG_DECLARE(img_hand); and that’s what is also happening in the gauge example.


Thank you Rouvo