createTextureFromImage Method

Create a new texture from an HTML image. Typically the image was extracted from a binary representation of a jpeg or png via imageElementFromImageSource

createTextureFromImage(_image: HTMLImageElement, _hasAlpha: boolean, _imodel: IModelConnection | undefined, _params: Params): RenderTexture | undefined

Parameter Type Description
_image HTMLImageElement  
_hasAlpha boolean  
_imodel IModelConnection | undefined  
_params Params  

Returns - RenderTexture | undefined

Defined in

Last Updated: 13 June, 2024