[cairo] render in grayscale
Per Hermansson
hermansson.per at bredband.net
Wed Sep 23 10:26:00 PDT 2009
Soeren Sandmann wrote:
> In cairo master, the HSL_LUMINOSITY operator can be used to get a
> grayscale conversion: compositing the RGB24 on top of opaque white
> using this operator will generate a properly converted grayscale
> image. The attached program will demonstrate this if you set
> "algorithm" to USE_LUMINOSITY.
>
> If you run it as is, it will just show the color drawing.
>
>
> Soren
>
Thanks for the help, this seems like the best approach to use when the
next cairo version is released.
Until then a possible solution might to pre-process the pdf before
rendering it.
Per
More information about the cairo
mailing list