ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Blends two images together. This allows you to create fade-in effects between 2 images.
Example
MonImageWDPic is WDPic = "Test.gif"
// Déclaration de l'image de promo
MonImagePromo is Image = "ImagePromo.png"
// Fusion de l'image de promo dans l'image du produit avec une opacité à 80 %
MonImageWDPic.Fusionne(MonImagePromo, 80)
IMG_MonDessin = MonImageWDPic
Syntax
<Destination image>.AlphaBlend(<Source image> [, <Opacity>])
<Destination image>: WDPic variable
Name of the WDPic variable in which the blend must be performed. Only the background layer will be handled. For the blend, this image will be considered as the background image.
<Source image>: Image control or Image, WDPic or picLayer variable
Image to merge. This image can correspond to:
  • the name of an Image control.
  • the name of a variable of type Image.
  • WEBDEV - Server code the name of a variable of type WDPic. Only the background layer will be handled.
  • WEBDEV - Server code the name of a variable of type picLayer.
<Opacity>: Optional real
Percentage of opacity that must be applied to <Source image> before performing the blend (100% by default, no opacity is applied).
Remarks
  • The size of the destination image corresponds to the reference size.
  • <WDPic variable>.AlphaBlend blends the images and keeps the alpha channel of the destination image. Therefore, the alpha channel of the source image is not used.
Component: wd300pnt.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help