Create an image from a text file.
Syntax

[C#]

static XImage FromTextFile(string inFile, DrawOptions inOptions);

[Visual Basic]

Shared Function FromTextFile(inFile As String, inOptions As DrawOptions) As XImage
Params
Name Description
inFile The image file to be imported.
inOptions The options for drawing the text onto the image.
Notes

Use this method when you want to render a text file and import it as an XImage. If you want import a big text file and then select which page to draw on a Canvas use this method and select an appropriate image frame in the draw options before drawing the XImage on the Canvas. Every image frame is a page in the rendered text document. Alternatively consider drawing the text on the Canvas using Canvas DrawText.

You need to specify a DrawOptions parameter in order to set text rendering properties such as the font or text size.

The text file must be smaller than MaxTxtFile.

See Also

FromTextStream

FromTextData

DrawText

Example

None.