PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Coordinates
  • Drawing in an image with opacity
  • Pattern and PHP
  • Drawing in Browser code
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
Identifies the opacity of a pixel of an image (background layer of an Variable of type WDPic) managing the Alpha layer.
Versions 15 and later
WINDEV This function is now available for Java applications.
New in version 15
WINDEV This function is now available for Java applications.
WINDEV This function is now available for Java applications.
Versions 16 and later
WINDEV This function is now available for WINDEV applications in Linux.
New in version 16
WINDEV This function is now available for WINDEV applications in Linux.
WINDEV This function is now available for WINDEV applications in Linux.
Example
MonImageWDPic est un WDPic = "Test.gif"
// Identification de l'opacité du pixel (15, 25)
// sur la variable MonImageWDPic
ResOpacité = MonImageWDPic.PixelOpacité(15, 25)
IMG_MonDessin = MonImageWDPic
Syntax
<Result> = <WDPic image>.PixelOpacity(<X-coordinate> , <Y-coordinate>)
<Result>: Integer
Opacity of specified pixel (included between 0 for transparent and 255 for opaque).
<WDPic image>: WDPic variable
Name of the variable of type WDPic to be used. Only the background layer will be handled.
<X-coordinate>: Integer
Horizontal position of pixel to use.
<Y-coordinate>: Integer
Vertical position of pixel to use.
Remarks

Coordinates

Coordinates are given in pixels with respect to the top left corner of the image (coordinates: (0.0)).

Drawing in an image with opacity

To specify that the drawing in the image supports opacity (Alpha layer), use <WDPic variable>.StartDrawing and the dWithOpacity constant.
Component: wd270obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment