https://bugs.documentfoundation.org/show_bug.cgi?id=105266
--- Comment #3 from Regina Henschel <[email protected]> ---
I think, the new part with dBrightness in
/core/svx/source/customshapes/EnhancedCustomShape2d.cxx and
/core/svx/source/svdraw/svdopath.cxx
is totally wrong. It applies fixed, unexplained factors to the colors, which
are already adjusted based on the values stored in nColorData according to the
various mso_spt... shape types.
But the old part, inherit from OpenOffice is wrong too. You see the difference
best with a dark fill color. Look at the "lighten" part. You can notice, that
it has less saturation in PowerPoint than in OpenOffice.
Microsoft has described the calculation to be used in
https://msdn.microsoft.com/en-us/library/hh745894%28v=office.12%29.aspx?f=255&MSPPError=-2147217396.
So the correct calculation would be:
for lighten: resultColor = 0.6 * fillcolor + 0.4 * 255
for lightenLess: resultColor = 0.8 * fillcolor + 0.2 * 255
for darken: resultColor = 0.6 * fillcolor + 0.4 * 0
for darkenLight: resultColor = 0.8 * fillcolor + 0.4 * 0
If I examine the colors in the image with a paint-application, I see exactly
these result (besides rounding).
I see no need to switch to HSV for the calculations.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs