https://bugs.documentfoundation.org/show_bug.cgi?id=148501

--- Comment #2 from Regina Henschel <[email protected]> ---
Created attachment 179647
  --> https://bugs.documentfoundation.org/attachment.cgi?id=179647&action=edit
How Bevel shapes looked in various versions

The attached file has in the first row the shapes. Left side is the shape
"Square Bevel" (= quad-bevel = mso_sptBevel). On the right side are the shapes
"Octagon Bevel" (= col-60da8460) and "Diamond Bevel" (= col-502ad400). The next
rows contain screenshots, how these shapes look in various versions.

All three use for shading nColorData. "Square Bevel" gets it from assignment,
"Octagon Bevel" and "Diamond Bevel" gets it from the type.

The shape "Octagon Bevel" has the color encoding 60da8460. The starting number
6 gives the number of color changes. The changes are then 0=original color 0%,
d=-30%, a=-60%, 8=-80%, 4=40%, 6=60%, 0 unused. A negative value means darken,
a positive value lighten.
The segments of the shape are drawn in the order
center (I), top-right and bottom-left (II), right and bottom (III),
bottom-right (IV), left and top (V), left-top (VI).

Between OOo 2.1 (about June 2006) and OOo2.4.3 (about August 2007) the way
changed how the geometry of the shape is transformed to PolyPolygons. The
changes are likely in fix for AOO bug #i76201 (Armin). Now a segment, which has
stroke and fill are rendered by two PolyPolygons, one for the stroke and one
for the fill.
The center segment of shape "Octagon Bevel" has no stroke, but the others have
stroke and fill. The last color change is repeated, if there are more
PolyPolygons than color changes. So you get:

Color change | OOo2.1 | new way
0%     | (I)   | (I) 
-30%   | (II)  | (II) stroke
-60%   | (III) | (II) fill
-80%   | (IV)  | (III) stroke
40%    | (V)   | (III) fill
60%    | (VI)  | (IV) stroke
60%    |       | (IV) fill
60%    |       | (V) stroke
60%    |       | (V) fill
60%    |       | (VI) stroke
60%    |       | (VI) fill

My solution is to skip those PolyPolygons which are not filled.

After applying my solution the shadings are still not the same as in OOo2.1.
The reason is, that the way, how the color adaption is calculated was changed,
likely in fix for AOO bug #i102797 (Thorsten). Those changes were made to get
rendering of shapes with darken/lighten parts nearer to rendering in
PowerPoint. Because that is necessary for shapes of type "mso-", I think it
should not be changed.

My suggestion is to live with the too dark colors in shape type "col-60da8460"
and "col-502ad400", but in our preset group "Symbol Shapes" and in Gallery
themes "private://gallery/hidden/imgppt" and "Shapes" replace the shapes
"Octagon Bevel" and "Diamond Bevel" with shapes that uses only shades
compatible with OOXML. I'll write a new bug for that.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to