IScene3DTextureManager.LoadFromFile

Syntax

LoadFromFile(FileName: String);

Parameters

FileName - path, name, and type of the file.

Description

The LoadFromFile method enables the user to load textures from a file to the end of the textures list.

Example

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:

IScene3DTextureManager