PlatformImage
Defined in: platform/types.ts:336
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:340
height
Section titled “height”height:
number
Defined in: platform/types.ts:338
onerror
Section titled “onerror”onerror:
PlatformImageEventHandler
Defined in: platform/types.ts:342
onload
Section titled “onload”onload:
PlatformImageEventHandler
Defined in: platform/types.ts:341
src:
string
Defined in: platform/types.ts:339
width:
number
Defined in: platform/types.ts:337