|
From: Jim B. <ji...@ch...> - 2014-10-17 17:42:25
|
On 17 October 2014 17:52, Michael Droettboom <md...@st...> wrote: > In agg-2.4, if I draw a rectangle path with RGB value of (0, 255, 102, > 64), the resulting pixel value is (0, 255, 102, 64). > > In agg-svn, I get (0, 255, 104, 64). > it seems the difference is not so much in anything intentional > but from the fact that everything but the final demultiply is downgraded > to color_type, and then the demultiply happens. Whereas in the old > version, it’s still doing calculations in calc_type (uint16) up until > the final demultiply. > Yes, I see the problem. I suppose it must have happened when refactoring for the floating-point support. I will try to think of a solution. - Jim |