In this example, we'll demonstrate the use of ecore_evas_object_image_new().
The idea is to have the same scene created for Ecore_Evas buffer example as the contents of an image object.
The canvas receiving this image object will have a white background, a red border image to delimit this image's boundaries and the image itself. After we create the special image, we set its "fill" property, place and resize it as we want. We have also to resize its underlying
Ecore_Evas too, to the same dimensions:
Now, we re-create the scene we cited, using the sub-canvas of our image to parent the objects in question. Because image objects are created with the alpha channel enabled, by default, we'll be seeing our white rectangle beneath the scene:
And that's all. The contents of our image could be updated as one wished, and they would always be mirrored in the image's area.
Check that destination file for the result. The full example follows.