Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 01.08.2012 20:59, Michael Meeks wrote:

On Wed, 2012-08-01 at 19:56 +0400, Ivan Timofeev wrote:
I solved the problem by the following change in renderAreaToPix:
cairo_data[x*4+0] * alpha

        That appears to me to break the compositing :-) it might happen to
improve things for this case of course.

Well, now I have read about alpha compositing and cairo... :)

We use CAIRO_FORMAT_ARGB32 and the cairo manual says[1]:

Pre-multiplied alpha is used. (That is, 50% transparent red is 0x80800000, not 0x80ff0000.)

so cairo_data elements already multiplied by alpha.

[1] http://www.cairographics.org/manual/cairo-Image-Surfaces.html#cairo-format-t

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.