PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
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 both:
  • the Image controls,
  • the Image variables.
  • Versions 25 and later
    WINDEVWEBDEV - Server code the WDPic variables,
    New in version 25
    WINDEVWEBDEV - Server code the WDPic variables,
    WINDEVWEBDEV - Server code the WDPic variables,
  • Versions 25 and later
    WINDEVWEBDEV - Server code the picCalque variables.
    New in version 25
    WINDEVWEBDEV - Server code the picCalque variables.
    WINDEVWEBDEV - Server code the picCalque variables.
Versions 18 and later
Java This function is now available for Java applications.
Android This function is now available for Android applications.
New in version 18
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android This function is now available for Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Linux Caution: A specific configuration is required to use this function in Linux. See The drawings for more details.
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 or variable field of type Image, WDPic or picCalque
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
    WINDEVWEBDEV - Server code the name of an WDPic variable. Only the background layer will be handled.
    New in version 25
    WINDEVWEBDEV - Server code the name of an WDPic variable. Only the background layer will be handled.
    WINDEVWEBDEV - Server code the name of an WDPic variable. Only the background layer will be handled.
  • Versions 25 and later
    WINDEVWEBDEV - Server code in the name of a variable of type picCalque.
    New in version 25
    WINDEVWEBDEV - Server code in the name of a variable of type picCalque.
    WINDEVWEBDEV - Server code in the name of a variable of type picCalque.
During the blend, this image will be considered as being the background image.
<Source image>: Image or variable field of type Image, WDPic or picCalque
Image to merge. This image can correspond to:
  • the name of an Image control.
  • the name of an Image variable.
  • Versions 25 and later
    WINDEVWEBDEV - Server code the name of an WDPic variable. Only the background layer will be handled.
    New in version 25
    WINDEVWEBDEV - Server code the name of an WDPic variable. Only the background layer will be handled.
    WINDEVWEBDEV - Server code the name of an WDPic variable. Only the background layer will be handled.
  • Versions 25 and later
    WINDEVWEBDEV - Server code in the name of a variable of type picCalque.
    New in version 25
    WINDEVWEBDEV - Server code in the name of a variable of type picCalque.
    WINDEVWEBDEV - Server code in the name of a variable of type picCalque.
<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 : wd250pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment