lvgl_image_converter
lvgl_image_converter copied to clipboard
使用CF_INDEXED_4_BIT格式时,样图中icon_weather_37_cold.png输出的背景色不对
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_ICON_WEATHER_37_COLD uint8_t icon_weather_37_cold_map[] = {
0x00, 0x00, 0x00, 0xFF, /*Color of index 0*/
0x22, 0x80, 0xFF, 0xFF, /*Color of index 1*/
0x22, 0x80, 0xFF, 0xFF, /*Color of index 2*/
0x20, 0x80, 0xFF, 0xFF, /*Color of index 3*/
0x22, 0x80, 0xFF, 0xFF, /*Color of index 4*/
0x23, 0x80, 0xFF, 0xFF, /*Color of index 5*/
0x21, 0x80, 0xFF, 0xFF, /*Color of index 6*/
0x22, 0x80, 0xFF, 0xFF, /*Color of index 7*/
0x20, 0x80, 0xFF, 0xFF, /*Color of index 8*/
0x22, 0x7F, 0xFF, 0xFF, /*Color of index 9*/
0xFF, 0xFF, 0xFF, 0xFF, /*Color of index 10*/
0xFF, 0xFF, 0xFF, 0xFF, /*Color of index 11*/
0xFF, 0xFF, 0xFF, 0xFF, /*Color of index 12*/
0xFF, 0xFF, 0xFF, 0xFF, /*Color of index 13*/
0xFF, 0xFF, 0xFF, 0xFF, /*Color of index 14*/
0xFF, 0xFF, 0xFF, 0xFF, /*Color of index 15*/
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
如上得到的头文件中的内容。
我没有进行具体的测试,请问您的上一个pr是不是已经修复该问题了? 或者说,您期待的正确输出是什么。
没解决。 这里最后两行的0xFF,对应的是2个像素,,是上面的第15行,应该是第0行,也就是应该是0x00才对。看代码好像用了算法计算得到的。