addImage
Adds an image to the 3D scene.
Usage
const image = {
url: "https://placehold.co/400",
size: {
height: 10,
width: 10
},
transform: {
position: {
x: 1.0,
y: 1.0,
z: 0.0
}
}
};
const imageId = viewer3d.addImage(image);Parameters
image
Image to add.
Type | Required |
|---|---|
Image | Yes |
Return Value
Id of the image.
Type |
|---|
String |