TextToBmp/en: Porovnání verzí
| Řádek 9: | Řádek 9: | ||
'''Generuje bitmapu z textu''' | '''Generuje bitmapu z textu''' | ||
| − | Renders the [[#text-|Text]] string with a [[#fontcolor-|FontColor]] in the [[#backgroundcolor-|BackgroundColor]], using the [[#font-|Font]] and it saves the result in the [[#bitmap-|Bitmap]] output parameter. The margins can be specified using [[#left-|Left]], [[#top-|Top]], [[#right-|Right]] and [[#bottom-|Bottom]]. The rendering mode is determined by the combination of parameters [[#method-|Method]] and [[#quality-|Quality]]. | + | Renders the [[#text-|Text]] string with a [[#fontcolor-|FontColor]] in the [[#backgroundcolor-|BackgroundColor]], using the [[#font-|Font]], and it saves the result in the [[#bitmap-|Bitmap]] output parameter. The margins can be specified using [[#left-|Left]], [[#top-|Top]], [[#right-|Right]] and [[#bottom-|Bottom]]. The rendering mode is determined by the combination of parameters [[#method-|Method]] and [[#quality-|Quality]]. |
== Vstupní parametry == | == Vstupní parametry == | ||
Verze z 1. 2. 2021, 18:21
Obsah
Description
Alias: TTB
Generuje bitmapu z textu
Renders the Text string with a FontColor in the BackgroundColor, using the Font, and it saves the result in the Bitmap output parameter. The margins can be specified using Left, Top, Right and Bottom. The rendering mode is determined by the combination of parameters Method and Quality.
Vstupní parametry
Text
Typ String
Text pro vykreslení.
Font
Typ Font
Definice nebo identifikátor fontu.
FontColor
Typ Color
Barva textu.
BackgroundColor
Typ Color
Barva pozadí.
Left
Typ Number
Šířka levého okraje v pixelech. Záporné hodnoty umožňují ořez.
Top
Typ Number
Šířka horního okraje v pixelech. Záporné hodnoty umožňují ořez.
Right
Typ Number
Šířka pravého okraje v pixelech. Záporné hodnoty umožňují ořez.
Bottom
Typ Number
Šířka dolního okraje v pixelech. Záporné hodnoty umožňují ořez.
OnlyIfNotNull
Typ Number
Pokud má hodnotu 1, pak se příkaz neprovádí v případě, kdy není zadána hodnota parametru Text.
Quality
Typ Number
Kvalita renderování textu (0=default, 1=draft, 2=proof, 3=nonantialiased, 4=antialiased, 5=cleartype, 6=cleartype natural).
Method
Typ Number
Metoda renderování textu (0=TextOut, 1=DrawText, 2=DirectWrite, 3=Java).
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
Bitmap
Typ Bitmap
Vygenerovaná bitmapa