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
Modifies the opacity of an image (which means the alpha channel of the image).
Example
MyImage is Image = "Test.gif"
MyImage is Image = "c:\test.png"
// Reduces the opacity by 50%
MyImage.ModifyOpacity(50)
MyImage.SaveImagePNG("c:\test2.png")
IMG_MyDrawing = MyImage
Syntax
ModifyOpacity(<Image> , <Factor>)
<Image>: Image variable
Name of the Image variable to be used.
<Factor>: Real
Factor for modifying the opacity, included between 0.0 and 100.0. This factor will be applied to the alpha channel of the image.
Remarks
This function can only be used with the images containing an alpha channel (32 bpp).
Component: wd300pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help