PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Coordinates
  • Drawing in an image with opacity
  • Pattern and PHP
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
Identifies the opacity of a pixel of an image (present in an Variable of Image type) managing the Alpha layer.
Versions 15 and later
Java This function is now available for Java applications.
New in version 15
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Versions 16 and later
Android This function is now available for Android applications.
New in version 16
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
MyImage is Image = "Test.gif"
// Identify the opacity of the pixel (15, 25)
// on the Image variable
ResOpacity = MyImage.PixelOpacity(15, 25)
IMG_MyDrawing = MyImage
Syntax
<Result> = <Image variable>.PixelOpacity(<X coordinate> , <Y coordinate>)
<Result>: Integer
Opacity of specified pixel (included between 0 for transparent and 255 for opaque).
<Image variable>: Image variable
Name of Image variable 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)).

Drawing in an image with opacity

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