ColorInfo/en: Porovnání verzí
(Založena nová stránka s textem „If the value is 1, the command will not execute unless it is the specified bitmap Bitmap.“) |
|||
| (Není zobrazeno 22 mezilehlých verzí od stejného uživatele.) | |||
| Řádek 9: | Řádek 9: | ||
'''Gets information about the presence of color in a bitmap.;''' | '''Gets information about the presence of color in a bitmap.;''' | ||
| − | In the | + | In the [[#bitmap-| Bitmap]] it detects the number of pixels with the [[#color-| Color]] in the [[#tolerance-| Tolerance]] band specified by the parameter and stores it in the output parameter [[#count-| Count]]. It stores the total number of pixels of the bitmap in the parameter [[#totalcount-| TotalCount]] and in the [[#percentage-| Percentage]] of the specified color. |
== Input parameters == | == Input parameters == | ||
| Řádek 16: | Řádek 16: | ||
=== Bitmap === | === Bitmap === | ||
| − | Type [[Special:MyLanguage/Data types# | + | Type [[Special:MyLanguage/Data types#Bitmap | Bitmap]] |
| − | Bitmap in which the | + | Bitmap in which the [[#color-| Color]] representation will be detected. |
<span id="color-"></span> | <span id="color-"></span> | ||
| Řádek 32: | Řádek 32: | ||
Type [[Special:MyLanguage/Data types#Number | Number]] | Type [[Special:MyLanguage/Data types#Number | Number]] | ||
| − | Specifies the tolerance band of all channels (RGB) of the | + | Specifies the tolerance band of all channels (RGB) of the [[#color-| Color]]. |
=== OnlyIfNotNull === | === OnlyIfNotNull === | ||
| Řádek 38: | Řádek 38: | ||
Type [[Special:MyLanguage/Data types#Number | Number]] | Type [[Special:MyLanguage/Data types#Number | Number]] | ||
| − | If the value is 1, the command will not execute unless | + | If the value is 1, the command will not execute unless the [[#bitmap-| Bitmap]] is specified. |
=== Enabled === | === Enabled === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Enables or disables the command. If the value is 0, the command will not be executed. | |
=== PreWait === | === PreWait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Delay in milliseconds before executing the command. It has no effect if Enabled=0. | |
=== PostWait === | === PostWait === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Delay in milliseconds before executing a command. It has no effect if Enabled=0. | |
| − | == | + | == Output parameters == |
<span id="count-"></span> | <span id="count-"></span> | ||
=== Count === | === Count === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Number of pixels in the [[#bitmap-| Bitmap]] matching the [[#color-| Color]] or in the specified tolerance band. | |
<span id="totalcount-"></span> | <span id="totalcount-"></span> | ||
=== TotalCount === | === TotalCount === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Total number of pixels in the [[#bitmap-| Bitmap]]. | |
<span id="percentage-"></span> | <span id="percentage-"></span> | ||
=== Percentage === | === Percentage === | ||
| − | + | Type [[Special:MyLanguage/Data types#Number | Number]] | |
| − | + | Percentage of the presence of the specified color. | |
Aktuální verze z 3. 2. 2021, 09:48
Obsah
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 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 the 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.