create MethodStatic
Create a Texture with given parameters.
create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, format: ImageSourceFormat, data: string, width: number, height: number, description: string, flags: TextureFlags): Texture
throws IModelError if unable to create the element.
Parameter | Type | Description |
---|---|---|
iModelDb | IModelDb | The iModel |
definitionModelId | Id64String | The 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 newly constructed Texture element.
Defined in
Last Updated: 08 January, 2020