AddTransparentImage - cImageList
Adds transparent images into the imagelist during the OnCreate event
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| sImage | String | The name of a bitmap file. It can be a fully-qualified name or the name of a file that can be found in the program's Workspace. |
| iTransparentColor | Integer | The color that will be replaced with the underlying control's background color when the image is displayed. If the piBackColor property does not contain clNone, then the iTransparentColor color will be replaced with the color of piBackColor instead. |
Syntax
Function AddTransparentImage String sImage Integer iTransparentColor Returns Integer
Call Example
Get AddTransparentImage sImage iTransparentColor to IntegerVariable
Description
Call the AddTransparentImage function during the OnCreate event to add transparent images into the imagelist.
Return Value
The return value is the index of the image that was added. If multiple images are added, then the index of the first image is returned. If the image could not be added, -1 is returned.