Skip to content

decodeImagePixels

decodeImagePixels(src): Promise<DecodedPixels>

Defined in: asset/imageDecode.ts:57

Decode a source into a top-first RGBA pixel buffer for the C++ createTexture upload path (play realm, preview, spine). Orientation stays top-first here; the consumer chooses the final convention via createTextureFromPixels(flipY) — v=1=top for general textures, v=0=top for spine / bitmap fonts.

ImageBitmapSource

Promise<DecodedPixels>