piBackColor - cImageList
Sets the background color of the images
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer piBackColor
| Access Type | Syntax |
|---|---|
| Read Access: | Get piBackColor to IntegerVariable |
| Write Access: | Set piBackColor to IntegerVariable/Value |
Description
piBackColor sets the background color of the images. If you leave this at the default value, the images will be added transparently. If you do not want transparent images, and require a fixed background color, you can set this property to valid RGB color.
This is passed a single value representing an RGB color, which can be a constant representing a Standard Color or a System Color, or a set of R, G and B values. Individual Red, Green, and Blue colors are converted to a single value by using the RGB function.
Set piBackColor to (rgb(255, 0, 0)) // red
Set piBackColor to clPurple
Set piBackColor to clBtnFace
Setting this property to a fixed color provides a small degree of optimization in the drawing, at the expense of flexibility as the background color must be known in advance.
Default is clNone.