ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
  • End of drawing
  • 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
Inverts the colors in a variable of type Image.
Linux Caution: Using this function under Linux requires a specific configuration.. For more details, see The drawings.
Example
MonImage is Image = "Test.gif"
// Inverse les couleurs de la variable MonImage
Résultat1 is boolean
Résultat1 = MonImage.InverseCouleur()
IF Résultat1 = False THEN Error("L'opération a échoué")
IMG_MonDessin = MonImage
Syntax
<Result> = <Image variable>.InvertColor()
<Result>: Boolean
  • True if the inversion of colors was performed,
  • False otherwise.
<Image variable>: Image variable
Name of the Image variable to be used.
Each pixel found in the image takes the opposite color from its initial color (bit-to-bit reversal). The image used is directly modified.
Remarks

End of drawing

If <WDPic variable>.EndDrawing and <Image variable>.InvertColor are called in the same process, the image changes will not be displayed.
Component: wd300pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/23/2024

Send a report | Local help