Languages

Menu
Sites
Language
Added png image is not visible in Swallow area

>>>> 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 26x37 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,

 

Edited by: TAE AHN on 08 Jul, 2016

Responses

2 Replies
Mehedi Alamgir

Whenever you found  your solution, post it  in reply section so that others can learn from mistake. As you already solved your problem, let us know what was that with its solution .

Hermet Park

Strange... It won't be problem with the image size.

If you're sure only certain images were not visible with that code. (not all, but some of them),

Then I bet on the problem could be more related with the png format.

But if all images are not visible, then It's suspicious to the visible status of the part.

 

Please be sure all images were insivisle or only certain images do,

If some certain images have the problem, then compare their image formats with successful pngs.

And then please share the result. If you cannot figure out the differencies, then please share that image.