ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Encrusts a color in an image found in an Image variable. The color is applied to the content of the image. Using the opacity allows you to get specific effects.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The drawings.
Example
// Use an Image variable
MyImage is Image
MyImage = "image.png"
// Encrusts the Yellow Toolhelp color with an opacity set to 5%
dEncrustColor(MyImage, YellowToolhelp, 5)
// Displays the image in an Image control
IMG_LandscapeImage = MyImage
Syntax
dEncrustColor(<Image> , <Color to encrust> [, <Opacity>])
<Image>: Image variable
Image variable corresponding to the image to use.
<Color to encrust>: Integer
Color that must be encrusted in the image. This color can correspond to:
<Opacity>: Optional real
Percentage of opacity used for the encrusted color (100% by default, no opacity is applied).
Component: wd290pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help