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).
Parameters
Section titled “Parameters”PlatformImage | ImageBitmapSource
boolean
Returns
Section titled “Returns”Promise<ImageBitmap>