跳转到内容

fetchDecodePixels

此内容尚不支持你的语言。

fetchDecodePixels(url): Promise<DecodedPixels>

Defined in: asset/imageDecode.ts:79

Fetch a URL and decode it to top-first RGBA pixels. The single fetch→blob→decode path the runtime asset sources use for estella:// / http origins (a CORS-mode <img> taints the canvas on custom schemes; fetch→blob sidesteps it). Uses the global fetch — these callers all run in a browser/electron context.

string

Promise<DecodedPixels>