Looking for more details on util::Color

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
_savage
Posts: 187
Joined: Sun Apr 21, 2013 12:55 am

Looking for more details on util::Color

Post by _savage »

The documentation for util::Color is rather sparse, and I’m looking for more details.

From the linked blurb I assume that byte 0 is the alpha channel? Considering the type is a long, i.e. a 32 bit value, then the layout (in big endian) of a color value would follow a ARGB (word-order):
ARGB color word
ARGB color word
PixelSamples32bppRGBA.png (1.44 KiB) Viewed 4309 times
I’ve also seen many CharColor properties with a value of -1, which would mean a fully transparent white. However, I assume it’s intended to mark “no color”?

Background color for a character is supposed to be handled by the CharBackColor property; however, even though text has a background color, the property’s value is always -1.

Any information is appreciated!
Mac 10.14 using LO 7.2.0.2, Gentoo Linux using LO 7.2.3.2 headless.
Post Reply