Re: [E-devel] evas_object_image rotation?
Am Wed, 6 Aug 2008 06:55:36 -0300 schrieb Andre Dieb: Hi all, I want to know if there are some ways to rotate an image object to a custom angle with C language API of EFL, here is some Python code I googled, but I could not find the corresponding function in Ecore_Evas/Evas C language API documents. I really appreciate if anyone can tell me how to or send me some example code. The Python code is as following: Here's some example code: https://garage.maemo.org/plugins/scmsvn/viewcvs.php/branches/prototypes_0.7/ui/gauges/evasutil.c?root=carmanview=markup I used it once for testing and worked. Maybe I'm dead wrong but AFAIK evas doesn't support rotation yet, this is third party. Sure? Why isn't it available? I think the algorithm to rotate an image are well known. Has simply nobody yet implemented it or are there other reasons? regards Andreas - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] evas_object_image rotation?
Here's some example code: https://garage.maemo.org/plugins/scmsvn/viewcvs.php/branches/prototypes_0.7/ui/gauges/evasutil.c?root=carmanview=markup I used it once for testing and worked. Maybe I'm dead wrong but AFAIK evas doesn't support rotation yet, this is third party. 2008/8/6 Yong Ma [EMAIL PROTECTED] Hi all, I want to know if there are some ways to rotate an image object to a custom angle with C language API of EFL, here is some Python code I googled, but I could not find the corresponding function in Ecore_Evas/Evas C language API documents. I really appreciate if anyone can tell me how to or send me some example code. The Python code is as following: #!/usr/bin/env python import sys import ecore import evas import ecore.evas if 'x11' in sys.argv: ee = ecore.evas.SoftwareX11(w=800, h=480) else: ee = ecore.evas.SoftwareX11_16(w=800, h=480) bg = ee.evas.Rectangle(color=(255, 255, 255, 255)) bg.size = ee.evas.size bg.show() img = ee.evas.Image() img.file_set(icon.png) img.move(380, 200) w, h = img.image_size_get() img.resize(w, h) img.fill_set(0, 0, w, h) img.show() rotation = [evas.EVAS_IMAGE_ROTATE_90] def rotate_img(rotation): img.rotate(rotation[0]) rotation[0] += 1 return rotation[0] = evas.EVAS_IMAGE_ROTATE_270 ee.fullscreen = False ee.show() ecore.timer_add(2.0, rotate_img, rotation) ecore.main_loop_begin() # prevent segfault del ee Thank you very much! -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- André Dieb Martins Mail: dieb at embedded.ufcg.edu.br, andre.dieb at gmail.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] evas_object_image rotation?
Hi all, I want to know if there are some ways to rotate an image object to a custom angle with C language API of EFL, here is some Python code I googled, but I could not find the corresponding function in Ecore_Evas/Evas C language API documents. I really appreciate if anyone can tell me how to or send me some example code. The Python code is as following: #!/usr/bin/env python import sys import ecore import evas import ecore.evas if 'x11' in sys.argv: ee = ecore.evas.SoftwareX11(w=800, h=480) else: ee = ecore.evas.SoftwareX11_16(w=800, h=480) bg = ee.evas.Rectangle(color=(255, 255, 255, 255)) bg.size = ee.evas.size bg.show() img = ee.evas.Image() img.file_set(icon.png) img.move(380, 200) w, h = img.image_size_get() img.resize(w, h) img.fill_set(0, 0, w, h) img.show() rotation = [evas.EVAS_IMAGE_ROTATE_90] def rotate_img(rotation): img.rotate(rotation[0]) rotation[0] += 1 return rotation[0] = evas.EVAS_IMAGE_ROTATE_270 ee.fullscreen = False ee.show() ecore.timer_add(2.0, rotate_img, rotation) ecore.main_loop_begin() # prevent segfault del ee Thank you very much! -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel