Create an image from file.
Syntax

[C#]

static XImage FromFile(string inFile);
static XImage FromFile(string inFile, XImageLoadOptions inOptions);

[Visual Basic]

Shared Function FromFile(inFile As String) As XImage
Shared Function FromFile(inFile As String, inOptions As XImageLoadOptions) As XImage
Params
Name Description
inFile The image file to be imported.
inOptions The image load options.
Notes

Use this method when you want to create an XImage from a file path. Specify import modules if you wish to limit image loading to a specific set of import modules.

See Also

FromStream

FromData

Example

None.