ColorInfo
Obsah
Description
Alias: CI
Gets information about the presence of color in a bitmap.;
In the bitmap Bitmap it detects the number of pixels with color Color in the tolerance band specified by the parameter Tolerance and stores it in the output parameter Count. It stores the total number of pixels of the bitmap in the parameter TotalCount and in the percentage amount Percentage of the specified color.
Input parameters
Bitmap
Type Number
Bitmap in which the Color representation will be detected.
Color
Type Color
Detected color.
Tolerance
Type Number
Specifies the tolerance band of all channels (RGB) of the color Color.
OnlyIfNotNull
Type Number
If the value is 1, the command will not execute unless it is the specified bitmap Bitmap.
Enabled
Type Number
Allows or prohibits a command. When 0, no command will be executed.
PreWait
Type Number
Delay in milliseconds before executing a command. It has no effect if Enabled=0.
PostWait
Type Number
Delay in milliseconds before executing a command. It has no effect if Enabled=0.
Output parameters
Count
Type Number
Number of pixels in the bitmap Bitmap matching the color Color or in the specified tolerance band.
TotalCount
Type Number
Total number of pixels in the bitmap Bitmap.
Percentage
Type Number
Percentage of the presence of the specified color.