PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Background image of a Chart control
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..TransparencyMode is used to find out and modify the transparency mode of an image.
Note: The transparency mode is defined in the editor via the "Transparency" option found in the description window of controls.
Example
// Modify the transparency mode of the image found in the "IMG_CarImage" control
IMG_CarImage..TransparencyMode = trsImage
Syntax

Finding out the current transparency mode Hide the details

<Current Transparency> = <Control Name>..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 The image transparency is kept.
trsMagentaThe magenta color found in the image will be transparent during the display.
<Control Name>: Character string (with or without quotes)
Name of control to use:
  • Image control.
  • WEBDEV - Server code Thumbnail control.
  • WEBDEV - Server code Clickable Image control.

Modifying the transparency mode Hide the details

<Control Name>..TransparencyMode = <New Mode>
<Control Name>: Character string (with or without quotes)
Name of control to use:
  • Image control.
  • WEBDEV - Server code Thumbnail control.
  • WEBDEV - Server code Clickable 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 image will be transparent.
trsImage The image transparency is kept.
trsMagentaThe magenta color found in the image will be transparent during the display.
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.

Limits

..TransparencyMode applies to the following controls:
  • Image control.
  • WEBDEV - Server code Thumbnail control.
  • WEBDEV - Server code Clickable Image control.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment