insert MethodStatic
Insert a new Texture into a model.
insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, format: ImageSourceFormat, data: string, width: number, height: number, description: string, flags: TextureFlags): Id64String
throws IModelError if unable to insert the element.
Parameter | Type | Description |
---|---|---|
iModelDb | IModelDb | Insert into this iModel |
definitionModelId | Id64String | Insert the new Texture into this DefinitionModel |
name | string | The name/CodeValue of the Texture |
format | ImageSourceFormat | Format of the image data |
data | string | The image data in a string |
width | number | The width of the texture |
height | number | The height of the texture |
description | string | An optional description of the texture |
flags | TextureFlags | Optional flags |
Returns - The Id of the newly inserted Texture element.
Defined in
Last Updated: 08 January, 2020