|
|
|
|
- Background image of a Chart control
- Limitations
TransparencyMode (Property) In french: ModeTransparence
The TransparencyMode property gets and sets the transparency mode of an image. Remark: The transparency mode is defined in the editor via the "Transparency" option found in the description window of controls. IMG_CarImage.TransparencyMode = trsImage Syntax
Finding out the current transparency mode Hide the details
<Current transparency> = <Control used>.TransparencyMode
<Current transparency>: Integer constant Current transparency mode of the image:
| | trsTopLeftCorner | The points with the same color as the one of the top left point of the image will be transparent. | trsImage | Image transparency is preserved. | trsMagenta | Magenta in the image will be transparent when displayed. |
<Control used>: Control name Name of the control to be used: - Image control.
- Thumbnail control.
- Clickable Image control.
Modifying the transparency mode Hide the details
<Control used>.TransparencyMode = <New mode>
<Control used>: Control name Name of the control to be used: - Image control.
- Thumbnail control.
- Clickable Image control.
<New mode>: Integer constant New transparency mode of the image:
| | trsTopLeftCorner | The points with the same color as the one of the top left point of the image will be transparent. | trsImage | Image transparency is preserved. | trsMagenta | Magenta in the image will be transparent when displayed. |
Remarks Background image of a Chart control When modifying the transparency mode of background image found in a Chart control, the chart display must be refreshed (by grDraw for example) in order for the change of transparency mode to appear. Limitations The TransparencyMode property can only be used in the following controls: - Image control.
- Thumbnail control.
- Clickable Image control.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|