LoadFromFile(FileName: String);
FileName - path, name, and type of the file.
The LoadFromFile method enables the user to load textures from a file to the end of the textures list.
This example assumes that there is the S object of the IScene3D type.
Sub Chart3D;
Var
s : IScene3D;
Begin
s.DisplayedObjects.TextureManager.LoadFromFile("c:\1.bmp");
s.DisplayedObjects.CoordinatePlanes.BackPlane.Plane.BitmapIndex := 0;
End Sub Chart3D;
After executing the example scene background is filled with the texture loaded from file.
See also: