[Webkit-unassigned] [Bug 23462] Add RGB -> CMYK conversion algorithm

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 21 15:20:53 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=23462





------- Comment #5 from mitz at webkit.org  2009-01-21 15:20 PDT -------
(In reply to comment #4)
> (In reply to comment #3)
> > I must be missing something. colors is only 0-1 so that I believe we want 255
> > here.
> 
> I think you want to divide the interval [0,1] into 255 equal intervals, and map
> the interval [254/255, 1] to 255. However, static_cast<int>(255 * (colors * (1
> - m_cyan))) will map [254/255, 1) to 254 and only the value 1 will map to 255.

Sorry, I meant to write:
You want to divide the interval [0, 1] into 256 equal intervals, and map the
interval [255/256, 1] to 255.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list