Ok, I figured it out, just: evas_object_image_size_set() has to be done *first* evas_object_image_data_set() next
evas_object_image_data_update_add() may not be missing! evas_object_image_size_set() allocates new memory, right? The data from the buffer is than copied there? What's the difference to evas_object_image_data_copy_set()? Thank you very much for your help so far, - J -----Original Message----- From: Carsten Haitzler (The Rasterman) [mailto:[EMAIL PROTECTED] Sent: Saturday, December 02, 2006 1:59 AM To: Joerg Plewe Cc: enlightenment-users@lists.sourceforge.net Subject: Re: [e-users] evas_object_image: assign existing buffer? On Tue, 28 Nov 2006 15:20:10 +0100 "Joerg Plewe" <[EMAIL PROTECTED]> babbled: > Hi friends! > > > > I have a pre-rendered image in memory somewhere that I want to be the > background of a evas (buffer) rendering. What is the fastest way to do so? place an image object in the canvas with this image data set to its data (resize appropriately and set image fill as you desire, so it scales, tiles - whatever). evas_object_image_data_set() evas_object_image_size_set() - data must be ARGB32 (also evas_object_image_alpha_set() to 0) > > > For now, I assume I have to copy the data to a evas_object_image pixel by > pixel? > > > > - J > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > enlightenment-users mailing list > enlightenment-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users