Lines Matching +defs:image +defs:height
54 int height = cairo_image_surface_get_height(surface);
56 if (width <= 0 || height <= 0 || stride <= 0) {
57 EINA_LOG_ERR("invalid image size %dx%d, stride=%d", width, height, stride);
67 RefPtr<Evas_Object> image = adoptRef(evas_object_image_filled_add(canvas));
68 if (!image) {
69 EINA_LOG_ERR("could not add image to canvas.");
73 evas_object_image_colorspace_set(image.get(), EVAS_COLORSPACE_ARGB8888);
74 evas_object_image_size_set(image.get(), width, height);
75 evas_object_image_alpha_set(image.get(), format == CAIRO_FORMAT_ARGB32);
77 if (evas_object_image_stride_get(image.get()) != stride) {
79 evas_object_image_stride_get(image.get()), stride);
83 evas_object_image_data_copy_set(image.get(), data);
85 return image.release();
93 int height;
94 ecore_evas_geometry_get(ee, 0, 0, &width, &height);
95 ASSERT(width > 0 && height > 0);
98 RefPtr<cairo_surface_t> surface = adoptRef(cairo_image_surface_create_for_data(buffer, CAIRO_FORMAT_ARGB32, width, height, width * 4));
109 PassRefPtr<cairo_surface_t> createSurfaceForImage(Evas_Object* image)
111 ASSERT(image);
114 Evas_Coord height;
115 evas_object_image_size_get(image, &width, &height);
116 ASSERT(width > 0 && height > 0);
118 unsigned char* buffer = static_cast<unsigned char*>(const_cast<void*>(evas_object_image_data_get(image, true)));
119 RefPtr<cairo_surface_t> surface = adoptRef(cairo_image_surface_create_for_data(buffer, CAIRO_FORMAT_ARGB32, width, height, width * 4));