On Wed, 6 Nov 2002 16:20:30 -0600 [EMAIL PROTECTED] babbled:
> I want to take a small section of the screen and copy it into an evas object.
> Using imlib, i can get the image data i want (and if i save it out i can see
> that it is correct), so I figured doing the following would work:
>
> evas_object_image_data_set(obj, imlib_get_image_data_for_reading_only());
>
> when i do this (with the image format in argb, rgba, png, whatever), the evas
> object shows no contents. (if i set a file, it does, so the object is in the
> right place and shown and all.)
>
> Is there a better way to do this? or is this the correct way and i'm just
> doing something wrong somewhere?
did you set the image size first?
evas_object_image_size_set(obj, pixel_width, pixel_height);
:)
(NB - if you set the image data and not COPIED data you MUST keep the image data
round for as long as the evas object is in existence (that is until you get the
callback for the object free)
you can avoid having to keep the image around with
evas_object_image_data_copy_set(object,
imlib_get_image_data_for_reading_only());
:-)
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
The Rasterman (Carsten Haitzler) [EMAIL PROTECTED]
[EMAIL PROTECTED]
Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9698 8615
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel