Added png image is not visible in Swallow area

Added png image is not visible in Swallow area

BY 09 Jul 2016 Native Application Development

>>>> Here : I found the reason and I solved. Thanks. I couldn’t delete this so I just lest comment. Thanks

Hi,

As I am implementing native app, I tried to show default image to swallow area.

However some png images  are not visible from Swallow, I don’t know why?

Here is code I am using. I think it depends on image, but I don’t know why some png is failed even though I minized size.

I also used the below code at the end as well, but it is not working

// evas_object_resize(album_image, 20, 20);

=============================================

album_image = elm_image_add(ad->layout);
elm_object_part_content_set(ad->layout, “main_album_swallow”, album_image);
app_get_resource(“images/default.png”, res_path, (int)PATH_MAX);
elm_image_file_set(album_image, res_path, NULL);

==============================================

default.png is 3kb with 32 x 28 resolution, and other png which is shown (succdessed)

is 558byte with 26×37 resolution. I tried to attach tested image file, but not allowed.

Tested target device : Z1.

Is this related compression? if so, could you give me any solution?

Thanks,

 

Written by