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.
Properties
Section titled “Properties”crossOrigin?
Section titled “crossOrigin?”
optionalcrossOrigin?:string|null
Defined in: platform/types.ts:334
height
Section titled “height”height:
number
Defined in: platform/types.ts:332
onerror
Section titled “onerror”onerror:
PlatformImageEventHandler
Defined in: platform/types.ts:336
onload
Section titled “onload”onload:
PlatformImageEventHandler
Defined in: platform/types.ts:335
src:
string
Defined in: platform/types.ts:333
width:
number
Defined in: platform/types.ts:331