On Wed, Nov 30, 2005 at 08:19:13AM -0600, Brian Mattern said:
> To get what you want, you'd need to set the alpha of each pixel to 100%. i'm 
> not sure if there's an easy way to do this with imlib. if not, you can always 
> run through the pixel data and change the alpha.


See I thought that too but I tried a temporary hack in the tiff loader 
to force the alpha to 255 and also tried these to snippets

          int w = imlib_image_get_width();
      int h = imlib_image_get_height();

      int x, y;
      for (x=0; x<w; x++) {
        for (y=0; y<h; y++) {
            imlib_apply_filter( "tint( x=[], y=[], alpha=255 );", &x,&y);
        }
      }



          DATA32 * data = imlib_image_get_data();
      int x, y;
      for (x=0; x<w; x++) {
        for (y=0; y<h; y++) {
            *data |= (255 << 24);
            data++;
        }
      }
 

But I get the same results even with a imlib_image_set_has_alpha(0). 
Most puzzling.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to