BmpToText

Z Wiki
Verze z 9. 7. 2020, 10:20, kterou vytvořil SamiecK (diskuse | příspěvky) (Založena nová stránka s textem „The command is not executed when the Bitmap parameter value is not specified and value of this parameter is 1.“)
Přejít na: navigace, hledání
Jiné jazyky:
English • ‎čeština

Description

Alias: BTT

Converts the bitmap to text.

Attempts to recognize the text rendered in the Bitmap and convert it to a string, which is stored in the Text output parameter. If a mask is set ( Masked=1), performed text detection is based on the color specified by the MaskColor parameter. To detect text, it is necessary to enter the font database file name with the FontDB parameter, which can be generated using the GuiMaster Editor tools.

Input parameters

Bitmap

Bitmap type

Bitmap containing text.

FontDB

String type

Font database file name.

Masked

Number type

Mask is created from the bitmap using the MaskColor if Masked=1.

MaskColor

Color type

Font color for mask (used only when Masked=1).

OnlyIfNotNull

Typ Number

The command is not executed when the Bitmap parameter value is not specified and value of this parameter is 1.

Enabled

Typ Number

Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.

PreWait

Typ 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

Text

Typ String

Detekovaný text.

Viz také

Příklady použití

Používání masky

Vytvoření databáze fontů