Looking for more details on util::Color

The Application Programming Interface and the OASIS Open Document Format

Looking for more details on util::Color

Postby _savage » Sat Nov 18, 2017 1:33 am

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
PixelSamples32bppRGBA.png (1.44 KiB) Viewed 163 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.11 using LO, Gentoo Linux using LO headless.
Posts: 138
Joined: Sun Apr 21, 2013 12:55 am

Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 3 guests