Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Historian

Color

  • Last UpdatedJan 25, 2024
  • 1 minute read

To specify a color for a control, you must specify the color as an integer value. The color is an ABGR color, where:

A = Transparency

B = Blue

G = Green

R = Red

A BGR color value is made up of 24 bits, with the upper 8 bits always being 0. For example, 0xFF0000 is 0B00 in the BGR convention, which equates to Blue.

An ABGR color value is made up of 32 bits, with the upper 8 bits being 0 by default. It can be set to any opacity:

  • 00 (in HEX) in the upper 8 bits means no transparency or full opacity.

  • FF (in HEX) in the upper 8 bits means full transparency or no opacity.

  • B0 (in HEX) in the upper 8 bits means more transparent than opaque.

  • 0A (in HEX) in the upper 8 bits means more opaque than transparent.

In decimal notation, the value for full transparency is 255.

For a color of Blue, the ABGR values are as follows:

A = 0 (full opacity)

B = 255

G = 0

R = 0

The hexidecimal value for this color is 0x00FF0000. The decimal value is 16711680.

0xA0FF0000 is 62.7% transparent blue. The decimal value is 2701066240.

0xFFFF0000 is fully transparent blue, so you do not see it at all. The decimal value is 4294901760.

0xA0000000 is a transparent shade of black (62.7% transparent). The decimal value is 2684354560.

Related Links
TitleResults for “How to create a CRG?”Also Available in