ColorInfo/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „== Description ==“)
 
(Není zobrazeno 33 mezilehlých verzí od stejného uživatele.)
Řádek 7: Řádek 7:
 
'''Alias: CI'''
 
'''Alias: CI'''
  
'''Zjistí informace o výskytu barvy v bitmapě.;'''
+
'''Gets information about the presence of color in a bitmap.;'''
  
V bitmapě [[#bitmap-| Bitmap]] zjistí počet pixelů s barvou [[#color-| Color]] v tolerančním pásmu určeném parametrem [[#tolerance-| Tolerance]] a uloží jej do výstupního parametru [[#count-| Count]]. Do parametru [[#totalcount-| TotalCount]] uloží celkový počet pixelu bitmapy a do [[#percentage-| Percentage]] procentuální podíl zadané barvy.
+
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.
  
== Vstupní parametry ==
+
== Input parameters ==
  
 
<span id="bitmap-"></span>
 
<span id="bitmap-"></span>
 
=== Bitmap ===
 
=== Bitmap ===
  
Typ [[Special:MyLanguage/Datové typy#Bitmap | Bitmap]]
+
Type [[Special:MyLanguage/Data types#Bitmap | Bitmap]]
  
Bitmapa, ve které se bude zjišťovat zastoupení barvy [[#color-| Color]]
+
Bitmap in which the [[#color-| Color]] representation will be detected.
  
 
<span id="color-"></span>
 
<span id="color-"></span>
 
=== Color ===
 
=== Color ===
  
Typ [[Special:MyLanguage/Datové typy#Color | Color]]
+
Type [[Special:MyLanguage/Data types#Color | Color]]
  
Zjišťovaná barva.
+
Detected color.
  
 
<span id="tolerance-"></span>
 
<span id="tolerance-"></span>
 
=== Tolerance ===
 
=== Tolerance ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Určujě toleranční pásmo všech kanálů (RGB) barvy [[#color-| Color]].
+
Specifies the tolerance band of all channels (RGB) of the [[#color-| Color]].
  
 
=== OnlyIfNotNull ===
 
=== OnlyIfNotNull ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Pokud má hodnotu 1, pak se příkaz neprovede, jestliže není zadána bitmapa [[#bitmap-| Bitmap]].
+
If the value is 1, the command will not execute unless the [[#bitmap-| Bitmap]] is specified.
  
 
=== Enabled ===
 
=== Enabled ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
+
Enables or disables the command. If the value is 0, the command will not be executed.
  
 
=== PreWait ===
 
=== PreWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
 
=== PostWait ===
 
=== PostWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing a command. It has no effect if Enabled=0.
  
== Výstupní parametry ==
+
== Output parameters ==
  
 
<span id="count-"></span>
 
<span id="count-"></span>
 
=== Count ===
 
=== Count ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Počet pixelů v bitmapě [[#bitmap-| Bitmap]] odpovídající barvě [[#color-| Color]] nebo v zadaném tolerančním pásmu.
+
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 ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Celkový počet pixelů v bitmapě [[#bitmap-| Bitmap]].
+
Total number of pixels in the [[#bitmap-| Bitmap]].
  
 
<span id="percentage-"></span>
 
<span id="percentage-"></span>
 
=== Percentage ===
 
=== Percentage ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Procentuální podíl výskytu zadané barvy.
+
Percentage of the presence of the specified color.

Aktuální verze z 3. 2. 2021, 09:48

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 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.