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: undefined | IModelConnection, _params: Params): undefined | RenderTexture

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

Returns - undefined | RenderTexture

Defined in

Last Updated: 29 November, 2022