Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IImage

Class used to abstract am image to use with the canvas and its context

Hierarchy

  • IImage

Index

Properties

crossOriginSearch playground for crossOrigin

crossOrigin: string | null

provides support for CORS, defining how the element handles crossorigin requests, thereby enabling the configuration of the CORS requests for the element's fetched data.

Readonly heightSearch playground for height

height: number

Image height.

Readonly naturalHeightSearch playground for naturalHeight

naturalHeight: number

The original height of the image resource before sizing.

Readonly naturalWidthSearch playground for naturalWidth

naturalWidth: number

The original width of the image resource before sizing.

onerrorSearch playground for onerror

onerror: ((this: GlobalEventHandlers, ev: Event) => any) | null

Error callback.

onloadSearch playground for onload

onload: ((this: GlobalEventHandlers, ev: Event) => any) | null

onload callback.

referrerPolicySearch playground for referrerPolicy

referrerPolicy: string

provides support for referrer policy on xhr load request, it is used to control the request header.

srcSearch playground for src

src: string

Image source.

Readonly widthSearch playground for width

width: number

Image width.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method