API Reference > imodeljs-backend > Elements > Texture > create 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 - Texture The newly constructed Texture element. Defined in core/backend/src/Texture.ts Line 70 Last Updated: 13 June, 2024