Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable key color when displaying PNG #3

Open
zq190kg opened this issue Sep 2, 2020 · 4 comments
Open

How to enable key color when displaying PNG #3

zq190kg opened this issue Sep 2, 2020 · 4 comments

Comments

@zq190kg
Copy link

zq190kg commented Sep 2, 2020

image

Like this effect, only the main body is displayed,Thank you for your reply

@zq190kg
Copy link
Author

zq190kg commented Sep 2, 2020

#define LV_COLOR_SCREEN_TRANSP 1
#define LV_COLOR_TRANSP LV_COLOR_LIME /LV_COLOR_LIME: pure green/

I defined the two line

@zq190kg
Copy link
Author

zq190kg commented Sep 2, 2020

lvgl v6.0

#define LV_COLOR_SCREEN_TRANSP 1
#define LV_COLOR_TRANSP LV_COLOR_LIME /LV_COLOR_LIME: pure green/
LV_IMG_DECLARE(png_decoder_test);
lv_obj_t * img = lv_img_create(lv_scr_act(), NULL);
lv_img_set_src(img, &png_decoder_test);

Like the effect below
image

@embeddedt
Copy link
Member

lvgl v6.0

Please update to the release/v6 branch, which contains 6.1 + any bugfixes after that. 6.0 is not supported.

@zq190kg
Copy link
Author

zq190kg commented Sep 2, 2020

lvgl v6.0

Please update to the release/v6 branch, which contains 6.1 + any bugfixes after that. 6.0 is not supported.

ok,tks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants