A wrapper for QColor.
More...
|
| Color () |
| Default constructor.
|
|
| Color (Number aRed, Number aGreen, Number aBlue, Number aAlpha=255) |
| Initializing constructor. More...
|
|
Number | rgb () const |
|
void | setRgb (Number aRed, Number aGreen, Number aBlue, Number aAlpha=255) |
| Set new RGBA values. More...
|
|
String | toString () const |
|
|
Number | alpha |
| The alpha transparency value in range 0...255. More...
|
|
Number | blue |
| The blue value in range 0...255. More...
|
|
Number | green |
| The green value in range 0...255. More...
|
|
Number | red |
| The red value in range 0...255. More...
|
|
A wrapper for QColor.
Example use within a report:
setion.item(
'myText').color =
new bps.
Color(50,100,150,128);
A wrapper for QColor.
Definition: bps.Color.js:13
The bps extension is a namespace assembling general BPS properties and functions.
Definition: bps.AsyncIO.js:1
◆ Color()
bps::Color::Color |
( |
Number |
aRed, |
|
|
Number |
aGreen, |
|
|
Number |
aBlue, |
|
|
Number |
aAlpha = 255 |
|
) |
| |
Initializing constructor.
- Parameters
-
aRed | The red value in range 0...255. |
aGreen | The green value in range 0...255. |
aBlue | The blue value in range 0...255. |
aAlpha | The alpha transparency value in range 0...255. |
◆ rgb()
Number bps::Color::rgb |
( |
| ) |
const |
- Returns
- A RGBA quadruplet on the format AARRGGBB, equivalent to an unsigned int.
◆ setRgb()
void bps::Color::setRgb |
( |
Number |
aRed, |
|
|
Number |
aGreen, |
|
|
Number |
aBlue, |
|
|
Number |
aAlpha = 255 |
|
) |
| |
Set new RGBA values.
- Parameters
-
aRed | The red value in range 0...255. |
aGreen | The green value in range 0...255. |
aBlue | The blue value in range 0...255. |
aAlpha | The alpha transparency value in range 0...255. |
◆ toString()
String bps::Color::toString |
( |
| ) |
const |
- Returns
- Returns "Color(r,g,b,a)"
◆ alpha
The alpha transparency value in range 0...255.
◆ blue
The blue value in range 0...255.
◆ green
The green value in range 0...255.
◆ red
The red value in range 0...255.
The documentation for this class was generated from the following file: