ColorInfo

Z Wiki
Verze z 27. 1. 2021, 14:56, kterou vytvořil BakerD (diskuse | příspěvky) (Založena nová stránka s textem „Number of pixels in the bitmap Bitmap matching the color Color or in the specified tolerance band.“)
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 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

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

Typ Number

Celkový počet pixelů v bitmapě Bitmap.

Percentage

Typ Number

Procentuální podíl výskytu zadané barvy.