* Carsten Haitzler <raster@...> [2003-01-17 11:12:55 +1100]:
> On Wed, 6 Nov 2002 16:20:30 -0600 bmattern@... 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
yeah, i ended up doing that also (in elicit).
thanks again though,
> --------------- Codito, ergo sum - "I code, therefore I am" --------------------
> The Rasterman (Carsten Haitzler) raster@...
> Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9698 8615