* Carsten Haitzler <[EMAIL PROTECTED]> [2003-01-17 11:12:55 +1100]:

> 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);

yep, that was the problem i had back in november :)
i guess this will be a good reminder for anyone else doing similar stuff.
> 
> :)
> (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());

yeah, i ended up doing that also (in elicit).
thanks again though,
--
brian

> 
> :-)
> 
> -- 
> --------------- 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 - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your 
clients even if they use browsers that are limited to 40 bit encryption. 
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to