ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Background image of a Chart control
  • Limitations
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The TransparencyMode property gets and sets the transparency mode of an image.
Note: The transparency mode is set in the editor using the "Transparency" option in the field description window..
Example
// Modification du mode de transparence de l'image du champ "IMG_ImageVoiture"
IMG_ImageVoiture.ModeTransparence = 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:
trsTopLeftCornerThe points with the same color as the one of the top left point of the image will be transparent.
trsImage Image transparency is preserved.
trsMagentaMagenta in the image will be transparent when displayed.
<Control used>: Control name
Name of the field to be manipulated:
  • Image control.

Modifying the transparency mode Hide the details

<Control used>.TransparencyMode = <New mode>
<Control used>: Control name
Name of the field to be manipulated:
  • Image control.
<New mode>: Integer constant
New transparency mode of the image:
trsTopLeftCornerThe points with the same color as the one of the top left point of the image will be transparent.
trsImage Image transparency is preserved.
trsMagentaMagenta 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.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help