ColorInfo

Z Wiki
Přejít na: navigace, hledání
Jiné jazyky:
English • ‎čeština

Description

Alias: CI

Gets information about the presence of color in a bitmap.;

In the Bitmap it detects the number of pixels with the Color in the Tolerance band specified by the parameter 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 Percentage of the specified color.

Input parameters

Bitmap

Type Bitmap

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.

OnlyIfNotNull

Type Number

If the value is 1, the command will not execute unless the Bitmap is specified.

Enabled

Type Number

Enables or disables the command. If the value is 0, the command will not 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 matching the Color or in the specified tolerance band.

TotalCount

Type Number

Total number of pixels in the Bitmap.

Percentage

Type Number

Percentage of the presence of the specified color.