Re: CAIRO_OPERATOR_ADD question

Bill Spitzak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
The results are clamped to the range the destination surface can 
represent. So if your image is 8-bit where 255 represents 1.0, then 2.0 
will be stored as the largest value it can, which is 1.0.

S Boucher wrote:
> I'm looking at http://cairographics.org/operators/ for CAIRO_OPERATOR_ADD.
> 
> I wonder whether the formulas are written correctly.
> 
> My reading of it is:
> 
> src: rgba(1, 0, 0, 1)
> OPERATOR_ADD
> dst: rgba(1, 0, 0, 1)
> RESULT: rgba(2,0,0,1).
> 
> i.e. the red is 200%.
> 
> But that can't fit in a CAIRO_FORMAT_ARGB32
> 
> What am I missing?
> 
> Thanks
> 
> 
> ------------------------------------------------------------------------
> 
> --
> cairo mailing list
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.