How to save image object to an image file?

How to save image object to an image file?

BY 16 Apr 2015 Native Application Development

Hi, all.

My simple app needs to save image object to an image file.

I tried to do with ‘evas_object_image_save’ function, however the fuction’s result is always ‘FALSE’.

My code is as follows

Evas *evas = evas_object_evas_get(win);
Evas_Object *image = evas_object_image_filled_add(evas);
elm_image_memfile_set(image, bitmap, size, "bmp", NULL);
evas_object_image_save(image, save_path, NULL, "quality=100 compress=8");

I’d appreciate any help or advice.

Thank you!

Written by