Skip to content

PlatformImage

Defined in: platform/types.ts:330

A decodable image (the offscreen <img> on DOM hosts). HTMLImageElement and a mini-game image are both structurally assignable. Native never creates one (createImage throws), so the DOM-shaped members impose nothing on native. crossOrigin is optional so a mini-game image (which lacks it) fits too.

optional crossOrigin?: string | null

Defined in: platform/types.ts:334


height: number

Defined in: platform/types.ts:332


onerror: PlatformImageEventHandler

Defined in: platform/types.ts:336


onload: PlatformImageEventHandler

Defined in: platform/types.ts:335


src: string

Defined in: platform/types.ts:333


width: number

Defined in: platform/types.ts:331