PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Blends two images together. This allows you to create fade-in effects between 2 images. This function handles:
  • Image controls,
  • variables of type Image.
  • Versions 25 and later
    WEBDEV - Server code variables of type WDPic,
    New in version 25
    WEBDEV - Server code variables of type WDPic,
    WEBDEV - Server code variables of type WDPic,
  • Versions 25 and later
    WEBDEV - Server code variables of type picLayer.
    New in version 25
    WEBDEV - Server code variables of type picLayer.
    WEBDEV - Server code variables of type picLayer.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The drawings.
Example
// Declare the promotion image
MyPromoImage is Image = "PromoImage.png"
 
// Blend the promotion image in the product image with an opacity set to 80%
dAlphaBlend(IMG_PRODUCT, MyPromoImage, 80)
Syntax
dAlphaBlend(<Destination image> , <Source image> [, <Opacity>])
<Destination image>: Image control or Image, WDPic or picLayer variable
Image in which the merge must be performed. This image can correspond to:
  • the name of an Image control.
  • the name of an Image variable.
  • Versions 25 and later
    WEBDEV - Server code the name of a WDPic variable. Only the background layer will be handled.
    New in version 25
    WEBDEV - Server code the name of a WDPic variable. Only the background layer will be handled.
    WEBDEV - Server code the name of a WDPic variable. Only the background layer will be handled.
  • Versions 25 and later
    WEBDEV - Server code the name of a picLayer variable.
    New in version 25
    WEBDEV - Server code the name of a picLayer variable.
    WEBDEV - Server code the name of a picLayer variable.
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 an Image variable.
  • Versions 25 and later
    WEBDEV - Server code the name of a WDPic variable. Only the background layer will be handled.
    New in version 25
    WEBDEV - Server code the name of a WDPic variable. Only the background layer will be handled.
    WEBDEV - Server code the name of a WDPic variable. Only the background layer will be handled.
  • Versions 25 and later
    WEBDEV - Server code the name of a picLayer variable.
    New in version 25
    WEBDEV - Server code the name of a picLayer variable.
    WEBDEV - Server code the name of a picLayer variable.
<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.
  • dAlphaBlend performs the merge by keeping the alpha layer of the destination image. Therefore, the alpha layer of the source image is not used.
Component: wd260pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment