语言

Menu
Sites
Language
How to crop image and save it into file

Hi all
Is there simple way to crop part of elm_image or evas_object_image and save it into file or such possibility is available with 'Image Util' just?
https://developer.tizen.org/development/tutorials/native-application/multimedia/image-util#crop
Thank you.
Alexey.

响应

2 回复
Alex Dem

Hi,
Solved. Looks like it is possible only with Image Util.
I was success to crop part of image on Z3 but not on Z1, on Z1 picture was resized and shrink instead of crop. And looks like on Z1 any transformations (tried to rotate and crop) are possible only if hardware accerlation does not set, I tried image_util_transform_set_hardware_acceleration (handle, true) at first, but registerd callback was not called.
Alexey.

Alex Dem

p.s. Also looks like it is possible to decode ->transform->encode  jpeg files only. Is it possible for any other formats (png for example)?
also in tutorial 

src = malloc(size); 

looks odd & wrong,
Alexey.