PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Coordinates
  • Drawing in an image with opacity
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 in an image (in an Image control) that manages the Alpha layer.
Example
// Identification de l'opacité du pixel (15, 25)
// sur le champ Image "IMG_ImageDessin"
ResOpacité = IMG_ImageDessin.PixelOpacité(15, 25)
Syntax
<Result> = <Image control>.PixelOpacity(<X-coordinate> , <Y-coordinate>)
<Result>: Integer
Opacity of specified pixel (included between 0 for transparent and 255 for opaque).
<Image control>: Control name
Name of the Image control to use.
<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)).
To retrieve the position of a mouse click in an Image control, use MouseXPos and MouseYPos.

Drawing in an image with opacity

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