PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Blends two images together. This allows you to create fade-in effects between 2 images.
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%
IMG_PRODUCT.AlphaBlend(MyPromoImage, 80)
Syntax
<Destination image>.AlphaBlend(<Source image> [, <Opacity>])
<Destination image>: Image variable
Name of the Image control that corresponds to the image in which the blend will be performed. 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. The image can correspond to:
  • the name of an Image control.
  • the name of a variable of type Image.
  • WINDEVWEBDEV - Server code the name of a variable of type WDPic. Only the background layer will be handled.
  • WINDEVWEBDEV - 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.
  • <Image 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: wd280pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment