EZTwainX - Text Style
The Image.DrawText and Images.DrawText methods take a style string as 2nd parameter, which can include any of the following:
| Style Element | Meaning | Added |
| angle:n | rotate text n degrees clockwise. Only multiples of 90 are supported. | |
| bold | apply bold styling | |
| bottom | push text to bottom of image | |
| center | center the text horizontally (in the image) | |
| color:#xxxxxx color:#abc |
render text in specified color. Color value is like CSS: 3 or 6 digits of hex RGB. In the short 3-digit form, #abc is short for #aabbcc |
|
| font:fontname | use specified typeface: Arial, Verdana, Courier, Georgia, ... A bit iffy on multiword font names... | |
| height:n | set the font-height in pixels | |
| italic | apply italic styling | |
| justify | stretch text to reach left and right sides, within reason. | 1.69 |
| left | push text to left side of image | |
| margin:n | ensure a margin of n pixels around the text on all sides | |
| margin-bottom: n | ensure an n-pixel margin below the text | |
| margin-left: n | ensure an n-pixel margin to the left of the text | |
| margin-right: n | ensure an n-pixel margin to the right of the text | |
| margin-top: n | ensure an n-pixel margin above the text | |
| right | push the text to the right side of the image. | |
| strikeout | apply strikeout styling, |
|
| top | push text to the top of the image | |
| underline | apply underline styling | |
| vcenter | center the text vertically in the image | |
| wrap | wrap the text (insert line breaks) if it is too wide for the available space |