You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/09/17 15:18:35 UTC

[Issue 126531] different behaviour for "CharColor" and "CharBackColor" properties in java

https://bz.apache.org/ooo/show_bug.cgi?id=126531

--- Comment #1 from John R. D'Orazio <jo...@cappellaniauniroma3.org> ---
I have run some further tests, and I see that the CharBackColor property has
swapped the alpha value such that a value of 0 (or 0.0, or 0x00) is treated as
opaque and a value of 255 (or 1.0, or 0xFF) is treated as transparent.

This is not the case for the CharColor property which seems to behave as it
should.

xPropertySet.setPropertyValue("CharBackColor", Color.YELLOW.getRGB()); //-> has
no visible effect because is treated as transparent!

xPropertySet.setPropertyValue("CharBackColor", Color.YELLOW.getRGB() -
0xFF000000); //-> sets an opaque yellow background color! having subtracted the
alpha bits and setting them 0 should give a transparent color, but Open Office
is treating transparent as opaque in this case!

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