On Wed, 30 Nov 2005 16:41:11 +0000 Simon Wistow <[EMAIL PROTECTED]> babbled:

> On Thu, Dec 01, 2005 at 01:19:41AM +0900, Carsten Haitzler said:
> > the problem is tif's use pre-multiplied alpha (ie rgb is multipled BY the
> > alpha value when stored) instead of non-premul (as imlib2's internals,
> > png's argb etc. use). that means imlib2 is missing the "de-multiply" on
> > load code. it has the multiple on save. it's a bug. :)
> 
> Hurrah! (sort of)
> 
> *insert blinding flash of realisation*
> 
> Doh!
> 
> I've just realised what was going on. I was mislead by the fact that it 
> was so dark and therefore though that it couldn't be the alpha_factor 
> because if it multiplied on save then it must divide on load.
> 
> But if the alpha is 146 then 146/2.550 is going to be less than 1 and 
> dividing by it is the same as multiplying. 

indeed.. nice though sending a patch is.. that one is just a bit inefficient :)
let me fix it up. :) in cvs now anyway

> 
> Patch attached.
> 
> Cheers for the help.
> 
> Simon
> 
> 
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to