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 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
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
PostWait
Typ Number
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
Výstupní parametry
Count
Typ Number
Počet pixelů v bitmapě Bitmap odpovídající barvě Color nebo v zadaném tolerančním pásmu.
TotalCount
Typ Number
Celkový počet pixelů v bitmapě Bitmap.
Percentage
Typ Number
Procentuální podíl výskytu zadané barvy.