TextToBmp

Z Wiki
Přejít na: navigace, hledání
Toto je přeložená verze stránky TextToBmp, překlad je hotový z 100 %.

Jiné jazyky:
English • ‎čeština

Description

Alias: TTB

Generates a bitmap from text

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 Method and Quality.

Input parameters

Text

Type String

Text for rendering.

Font

Type Font

Font definition or identifier.

FontColor

Type Color

Text color.

BackgroundColor

Type Color

Background color.

Left

Type Number

Width of the left margin in pixels. Negative values enable trimming.

Top

Type Number

Width of the top margin in pixels. Negative values enable trimming.

Right

Type Number

Width of the right margin in pixels. Negative values enable trimming.

Bottom

Type Number

Width of the bottom margin in pixels. Negative values enable trimming.

OnlyIfNotNull

Type Number

If the value is 1, the command will not execute unless the value of the Text parameter is specified.

Quality

Type Number

Quality of rendering the text (0=default, 1=draft, 2=proof, 3=nonantialiased, 4=antialiased, 5=cleartype, 6=cleartype natural).

Method

Type Number

Method of rendering the text (0=TextOut, 1=DrawText, 2=DirectWrite, 3=Java).

Enabled

Type Number

Enables or disables the command. If the value is 0, the command will not execute.

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 the command. It has no effect if Enabled=0.

Output parameters

Bitmap

Type Bitmap

Generated bitmap.