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
Returns the dominant (i.e. most frequent) color of an image found in a variable of type Image or in an Image control.
Example
MyColor is Color = dDominantImageColor(IMG_MyImage)
Syntax
<Result> = dDominantImageColor(<Image>)
<Result>: Integer
Dominant color of image.
<Image>: Character string or Image variable
Image to be analyzed. This parameter can correspond to:
  • the name of an Image control,
  • the name of a variable of type Image.
Remarks
  • The transparent or semi-transparent pixels found in the image are ignored.
  • dDominantImageColor cannot be used on vector images (SVG, PDF, etc).
Component: wd300pnt.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help