On Fri, 05 Oct 2012 11:33:11 +0000 (GMT) SHILPA ONKAR SINGH
<shilpa.si...@samsung.com> said:

you can't save an image if its being used as a proxy. all the data is in gpu
specific format (if you have something like gl) and thus is not accessible. if
you must have pixel data that's what the buffer canvas exists for. ecore_evas
can create them and return an image object that is filled with the buffer
canvas. elementary also wraps this with the inlined window. take a look at
those.

> Hi All,
> 
> I am creating a proxy image object by using the API
> "evas_object_image_source_set" and using elm_button widget as the source. 
> The proxy image object successfully gets created and I can see its contents
> on screen when I show it.
> 
> I want to save this proxy image object in to a image file.
> Please tell me how to do this, as the API for saving the image
> "evas_object_image_save" fails in case of proxy image object.
> 
> internally when I checked it returns 0 as engine_data is NULL in this case.
> 
> Below is sample code.
> 
> Evas_Object *btn = elm_button_add(parent);
> Evas_Object *proxy;
> elm_object_text_set(btn, "test");
> evas_object_show(btn);
> proxy = evas_object_image_add(evas_object_evas_get(btn));
> evas_object_image_source_set(proxy, btn);
> evas_object_resize(proxy, 100, 200);
> evas_object_image_filled_set(proxy, EINA_TRUE);
> if (!evas_object_image_save(proxy, "\temp\image.png", NULL, "quality=100"))
>   printf("\nCannot save image\n");
> 
> evas_object_image_save is failing.
> 
> Thanks & Regards
> Shilpa Singh
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to