createTextureFromImage Method

Deprecated  in 3.x. Use createTexture.

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, params: RenderTexture.Params): undefined | RenderTexture

Parameter Type Description
image HTMLImageElement  
hasAlpha boolean  
iModel IModelConnection  
params RenderTexture.Params  

Returns - undefined | RenderTexture

Defined in

Last Updated: 13 November, 2024