Skip to content

decodeImageBitmap

decodeImageBitmap(src, flip): Promise<ImageBitmap>

Defined in: asset/imageDecode.ts:34

Decode a source into a GL-oriented ImageBitmap for direct texImage2D upload (the editor/web TextureLoader). With flip, the result samples file-top at v=1; upload it with UNPACK_FLIP_Y_WEBGL off (the orientation is already baked).

PlatformImage | ImageBitmapSource

boolean

Promise<ImageBitmap>