createPicture

Syntax

createPicture(FilePath:string, Orientation:integer, Size:length[2], Bifacial:boolean[, Thickness:length]) → any

The method createPicture creates a textured plate which shows the full-sized picture loaded from the designated file.

Parameters

  • The parameter FilePath of data type string sets the path and the name of the file you want to import.

  • The parameter Orientation of data type integer sets the sets the orientation of the picture. 1 stands for Floor, 2 stands for Front Wall, and 3 stands for Side Wall.

  • The parameter Size is an array of data type length which sets the width and the height of the picture. If you enter a value less than or equal to 0 for one of the values for one of the two values, the respective other value is calculated from the width to height ratio.

  • The parameter Bifacial of data type boolean sets if the texture will be shown on both sides of the plate (true) or only on the top side of the plate (false).

  • The optional parameter Thickness of data type length sets the thickness of the plate.

Return Value

The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.

Example

var picture := _3D.getGraphic("deco").createPicture("D:\Picture.png", 1, [5.0,3.0], false, 1)
picture.MaterialActive := true
picture.MaterialDiffuseColor := makeRGBValue(255,0,0)

Related Topics

Textured Plate

createTiledPlate

_3D.getGraphic

Detailed Access To Graphics