PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
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.
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%
IMG_PRODUCT.AlphaBlend(MyPromoImage, 80)
Syntax
<Image control>.Blend(<Source image> [, <Opacity>])
<Image control>: Control name
Name of the Image control that corresponds to the image in which the blend will be performed. During the blend, this image will be considered as being the background image.
<Source image>: Image variable or Image control
Image to merge. This image can correspond to:
  • the name of an Image control.
  • the name of an Image 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.
  • <Image>.AlphaBlend performs the merge by keeping the alpha layer of the destination image. Therefore, the alpha layer of the source image is not used.
Component : wd240pnt.dll
Minimum required version
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment