ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WINDEV Mobile 2025 feature!
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Monochrome property is used to:
  • determine if the pixels of an image contained in an Image control are automatically replaced with a color specified in the style options ("Style" tab of the control description, "Force monochrome mode").
  • enable or disabled monochrome mode in an Image control. If monochrome mode is enabled, the pixels of an image contained in an Image control will be automatically replaced with a color specified in the style options ("Style" tab of the control description, "Force monochrome mode").
This property makes it possible to easily apply palette colors on images.
Note: This property is only available from version 2025 Update 1.
Example
IMG_MyImage = "C:\Temp\MyImage.jpeg"
IMG_MyImage.Monochrome = True
Syntax

Determining if monochrome mode is currently supported Hide the details

<Result> = <Image control>.Monochrome
<Result>: Boolean
  • True if the Image control supports monochrome mode,
  • False otherwise.
<Image control>: Control name
Name of the Image control to be used.

Enabling or disabling monochrome mode Hide the details

<Image control>.Monochrome = <Display mode>
<Image control>: Control name
Name of the Image control to be used.
<Display mode>: Boolean
  • True to enable monochrome mode in the Image control,
  • False to disable monochrome mode.
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/11/2025

Send a report | Local help