ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
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
<Image>.DominantImageColor (Function)
In french: <Image>.CouleurDominanteImage
Returns the dominant (i.e. most frequent) color of an image found in an Image control.
Example
MyColor is Color = IMG_MyImage.DominantImageColor()
Syntax
<Result> = <Image control>.DominantImageColor()
<Result>: Integer
Dominant color of image.
<Image control>: Control name
Name of the Image control to be used.
Remarks
  • The transparent or semi-transparent pixels found in the image are ignored.
  • <Image>.DominantImageColor cannot be used on vector images (SVG, PDF, etc).
Component: wd300pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help