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