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):

PixelSamples32bppRGBA.png
ARGB color word
PixelSamples32bppRGBA.png (1.44 KiB) Viewed 179 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 5.3.6.1, Gentoo Linux using LO 5.3.4.2 headless.
_savage
 
Posts: 143
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 1 guest