On Mon, 30 Aug 2004 10:12:02 +0200 Holger Hanrath <[EMAIL PROTECTED]> babbled:
> On Sat, 21 Aug 2004 16:38:01 +0200, Michael 'Mickey' Lauer wrote:
>
> > Hi,
> >
> > is stuffing a picture.png into /path/to/my.eet and then trying to load
> > it via evas_object_image_load( obj, "/path/to/my.eet", "picture.png" )
> > supposed to work?
>
> no,
>
> try this:
>
> Evas_Object * obj;
>
> int
> load_image_from_eet(void)
> {
> int w, h, alpha, compress, quality, lossy;
> Eet_File * ef = NULL;
> void * data = NULL;
>
> ef = eet_open("/path/to/my.eet", EET_FILE_MODE_READ);
>
> if(NULL == ef)
> return -1;
>
> /* load image data from eet file */
> data = eet_data_image_read(ef, "image/my_image", &w, &h,
> &alpha, &compress, &quality, &lossy);
>
> if(NULL == data)
> {
> eet_close(ef);
> return -1;
> }
>
> /* create a new image frome the data*/
> obj = evas_object_image_add(evas);
>
> evas_object_image_alpha_set(obj, alpha);
> evas_object_image_size_set(obj, w, h);
> evas_object_image_data_copy_set(obj, data);
>
> evas_object_show(bg);
>
> free(data);
> eet_close(ef);
>
> return 1;
> }
no this wont work. the eet entry is a png file verbatim. what u have above is
what evas does internally anyway. use eet_data_image_write() to store the image
int he eet :)
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [EMAIL PROTECTED]
熊耳 - 車君 (数田) [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel