ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
  • Coordinates
  • Drawing in an image with opacity
  • Drawing in PHP
  • Drawing in Browser code
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Identifies the opacity of a pixel in an image (in a variable of type picLayer) with an Alpha channel.
Example
MonImageWDPic is WDPic = "Test.gif"
MonCalque is picLayer
// Identification de l'opacité du pixel (15, 25)
// sur le calque
ResOpacité = MonCalque.PixelOpacité(15, 25)
IMG_MonDessin = MonImageWDPic
Syntax
<Result> = <picLayer image>.PixelOpacity(<X-coordinate> , <Y-coordinate>)
<Result>: Integer
Opacity of specified pixel (included between 0 for transparent and 255 for opaque).
<picLayer image>: picLayer variable
Name of the picLayer variable to be used.
<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 upper-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 channel), use <picLayer variable>.StartDrawing and the dWithOpacity constant.
Component: wd300obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help