Greetings!
I’ve converted a png image with alpha channel to ‘image.bin’ file at online image converter,
Without alpha, it is okay,
it displays like below(LVGL v9-dev)
I’ve tried lv.COLOR_FORMAT.NATIVE, NATIVE_ALPHA, NATIVE_ALPHA_REVERSED, RGB565, ,ARGB8565, etc… with various output format (RGB565,565SWAP,888)
Dev,
- ESP32 SPIRAM + GC9A01 + lvgl v9-dev
- display driver with NATIVE_REVERSED option
with open(‘/alpha_565.bin’,‘rb’) as f:
png_data = f.read()
img_dsc = lv.img_dsc_t({
‘header’: {‘always_zero’: 0, ‘w’: 100, ‘h’: 100, ‘cf’: color_format},
‘data_size’: len(png_data),
‘data’: png_data
})
img1 = lv.img(lv.scr_act())
img1.set_src(img_dsc)
img1.align(lv.ALIGN.CENTER, -50, -50)
img1.set_size(100, 100)