Re: [E-devel] Check if image file is recalsed
On Mon, 24 May 2010, whtuhtc tu wrote: Hi, If I want to check if the image file is rescaled by EFL, where can I log or print a message to reminder me? To resize the image itself: evas_object_image_size_set(o, width, height); evas_object_image_fill_set(o, 0, 0, width, height); To resize the Evas_Object that will display the image: evas_object_resize(o, width, height); So, if you do: evas_object_image_size_set(o, 2 * width, 2 * height); evas_object_image_fill_set(o, 0, 0, 2 * width, 2 * height); evas_object_resize(o, width, height); the image will have twice its width and height, but you will only see a quarter of it. Vincent Are there only evas_object_resize and evas_object_image_fill_set used to rescaled image file? Thanks in advance. whtuhtc -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Check if image file is recalsed
sorry, this is evas_object_image_filled_set 2010/5/24 Atton Jonathan jonathan.at...@gmail.com or : evas_object_image_file_set 1 time and then when you rezise : evas_object_resize 2010/5/24 Vincent Torri vto...@univ-evry.fr On Mon, 24 May 2010, whtuhtc tu wrote: Hi, If I want to check if the image file is rescaled by EFL, where can I log or print a message to reminder me? To resize the image itself: evas_object_image_size_set(o, width, height); evas_object_image_fill_set(o, 0, 0, width, height); To resize the Evas_Object that will display the image: evas_object_resize(o, width, height); So, if you do: evas_object_image_size_set(o, 2 * width, 2 * height); evas_object_image_fill_set(o, 0, 0, 2 * width, 2 * height); evas_object_resize(o, width, height); the image will have twice its width and height, but you will only see a quarter of it. Vincent Are there only evas_object_resize and evas_object_image_fill_set used to rescaled image file? Thanks in advance. whtuhtc -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Regards. -- Regards. -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Check if image file is recalsed
or : evas_object_image_file_set 1 time and then when you rezise : evas_object_resize 2010/5/24 Vincent Torri vto...@univ-evry.fr On Mon, 24 May 2010, whtuhtc tu wrote: Hi, If I want to check if the image file is rescaled by EFL, where can I log or print a message to reminder me? To resize the image itself: evas_object_image_size_set(o, width, height); evas_object_image_fill_set(o, 0, 0, width, height); To resize the Evas_Object that will display the image: evas_object_resize(o, width, height); So, if you do: evas_object_image_size_set(o, 2 * width, 2 * height); evas_object_image_fill_set(o, 0, 0, 2 * width, 2 * height); evas_object_resize(o, width, height); the image will have twice its width and height, but you will only see a quarter of it. Vincent Are there only evas_object_resize and evas_object_image_fill_set used to rescaled image file? Thanks in advance. whtuhtc -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Regards. -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Check if image file is recalsed
Thanks for the replies. If I want to know whether the image is rescaled automatically by EFL such as when enlarging window which contains image object. How can I do? any suggestions? 2010/5/24 Atton Jonathan jonathan.at...@gmail.com sorry, this is evas_object_image_filled_set 2010/5/24 Atton Jonathan jonathan.at...@gmail.com or : evas_object_image_file_set 1 time and then when you rezise : evas_object_resize 2010/5/24 Vincent Torri vto...@univ-evry.fr On Mon, 24 May 2010, whtuhtc tu wrote: Hi, If I want to check if the image file is rescaled by EFL, where can I log or print a message to reminder me? To resize the image itself: evas_object_image_size_set(o, width, height); evas_object_image_fill_set(o, 0, 0, width, height); To resize the Evas_Object that will display the image: evas_object_resize(o, width, height); So, if you do: evas_object_image_size_set(o, 2 * width, 2 * height); evas_object_image_fill_set(o, 0, 0, 2 * width, 2 * height); evas_object_resize(o, width, height); the image will have twice its width and height, but you will only see a quarter of it. Vincent Are there only evas_object_resize and evas_object_image_fill_set used to rescaled image file? Thanks in advance. whtuhtc -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Regards. -- Regards. -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Check if image file is recalsed
On Mon, May 24, 2010 at 10:48 PM, whtuhtc tu whtu...@gmail.com wrote: Thanks for the replies. If I want to know whether the image is rescaled automatically by EFL such as when enlarging window which contains image object. How can I do? you can't know about images being rescaled, as this is the image-fill property as explained in this thread. but the property does not change automatically, you must do it yourself. if you are looking for edje or evas_object_image_filled, these will act when object is resized, matching the fill and the following code may help: evas_object_event_callback_add(img, EVAS_CALLBACK_RESIZE, _img_resized_cb, _some_context_data); -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel