Lines Matching refs:image
28 * Converts an image from cairo_surface to the Evas_Object.
31 * @param surface cairo representation of an image
40 Evas_Object* image;
71 ERR("invalid image size %dx%d, stride=%d", w, h, stride);
81 image = evas_object_image_filled_add(canvas);
82 if (!image) {
83 ERR("could not add image to canvas.");
87 evas_object_image_colorspace_set(image, EVAS_COLORSPACE_ARGB8888);
88 evas_object_image_size_set(image, w, h);
89 evas_object_image_alpha_set(image, format == CAIRO_FORMAT_ARGB32);
91 if (evas_object_image_stride_get(image) != stride) {
93 evas_object_image_stride_get(image), stride);
94 evas_object_del(image);
98 dst = evas_object_image_data_get(image, EINA_TRUE);
100 evas_object_image_data_set(image, dst);
102 evas_object_resize(image, w, h); // helpful but not really required
104 return image;