HTMLImageElement

Overview

The HTMLImageElement interface represents an HTML <img> element, providing the properties and methods used to manipulate image elements.

Location

 

alt

 

property alt: String read write;

 

String alt { get; set; }

 

var alt: String { get{} set{} }

 

String alt { __get; __set; }

 

Property alt() As String

complete

 

property complete: Boolean read;

 

Boolean complete { get; }

 

var complete: Boolean { get{} }

 

Boolean complete { __get; }

 

ReadOnly Property complete() As Boolean

crossOrigin

 

property crossOrigin: String read write;

 

String crossOrigin { get; set; }

 

var crossOrigin: String { get{} set{} }

 

String crossOrigin { __get; __set; }

 

Property crossOrigin() As String

currentSrc

 

property currentSrc: String read;

 

String currentSrc { get; }

 

var currentSrc: String { get{} }

 

String currentSrc { __get; }

 

ReadOnly Property currentSrc() As String

decode

Returns a Promise that resolves when the image is decoded and it's safe to append the image to the DOM. This prevents rendering of the next frame from having to pause to decode the image, as would happen if an undecoded image were added to the DOM.

 

method decode: dynamic

 

dynamic decode()

 

func decode() -> dynamic

 

dynamic decode()

 

Function decode() As dynamic

decoding

 

property decoding: String read write;

 

String decoding { get; set; }

 

var decoding: String { get{} set{} }

 

String decoding { __get; __set; }

 

Property decoding() As String

height

 

property height: Int32 read write;

 

Int32 height { get; set; }

 

var height: Int32 { get{} set{} }

 

Int32 height { __get; __set; }

 

Property height() As Int32

isMap

 

property isMap: Boolean read write;

 

Boolean isMap { get; set; }

 

var isMap: Boolean { get{} set{} }

 

Boolean isMap { __get; __set; }

 

Property isMap() As Boolean

loading

 

property loading: String read write;

 

String loading { get; set; }

 

var loading: String { get{} set{} }

 

String loading { __get; __set; }

 

Property loading() As String

naturalHeight

 

property naturalHeight: Int32 read;

 

Int32 naturalHeight { get; }

 

var naturalHeight: Int32 { get{} }

 

Int32 naturalHeight { __get; }

 

ReadOnly Property naturalHeight() As Int32

naturalWidth

 

property naturalWidth: Int32 read;

 

Int32 naturalWidth { get; }

 

var naturalWidth: Int32 { get{} }

 

Int32 naturalWidth { __get; }

 

ReadOnly Property naturalWidth() As Int32

referrerPolicy

 

property referrerPolicy: dynamic read write;

 

dynamic referrerPolicy { get; set; }

 

var referrerPolicy: dynamic { get{} set{} }

 

dynamic referrerPolicy { __get; __set; }

 

Property referrerPolicy() As dynamic

sizes

 

property sizes: dynamic read write;

 

dynamic sizes { get; set; }

 

var sizes: dynamic { get{} set{} }

 

dynamic sizes { __get; __set; }

 

Property sizes() As dynamic

src

 

property src: String read write;

 

String src { get; set; }

 

var src: String { get{} set{} }

 

String src { __get; __set; }

 

Property src() As String

srcset

 

property srcset: String read write;

 

String srcset { get; set; }

 

var srcset: String { get{} set{} }

 

String srcset { __get; __set; }

 

Property srcset() As String

useMap

 

property useMap: String read write;

 

String useMap { get; set; }

 

var useMap: String { get{} set{} }

 

String useMap { __get; __set; }

 

Property useMap() As String

width

 

property width: Int32 read write;

 

Int32 width { get; set; }

 

var width: Int32 { get{} set{} }

 

Int32 width { __get; __set; }

 

Property width() As Int32

x

 

property x: Double read;

 

Double x { get; }

 

var x: Double { get{} }

 

Double x { __get; }

 

ReadOnly Property x() As Double

y

 

property y: Double read;

 

Double y { get; }

 

var y: Double { get{} }

 

Double y { __get; }

 

ReadOnly Property y() As Double

 

alt

 

property alt: String read write;

 

String alt { get; set; }

 

var alt: String { get{} set{} }

 

String alt { __get; __set; }

 

Property alt() As String

complete

 

property complete: Boolean read;

 

Boolean complete { get; }

 

var complete: Boolean { get{} }

 

Boolean complete { __get; }

 

ReadOnly Property complete() As Boolean

crossOrigin

 

property crossOrigin: String read write;

 

String crossOrigin { get; set; }

 

var crossOrigin: String { get{} set{} }

 

String crossOrigin { __get; __set; }

 

Property crossOrigin() As String

currentSrc

 

property currentSrc: String read;

 

String currentSrc { get; }

 

var currentSrc: String { get{} }

 

String currentSrc { __get; }

 

ReadOnly Property currentSrc() As String

decoding

 

property decoding: String read write;

 

String decoding { get; set; }

 

var decoding: String { get{} set{} }

 

String decoding { __get; __set; }

 

Property decoding() As String

height

 

property height: Int32 read write;

 

Int32 height { get; set; }

 

var height: Int32 { get{} set{} }

 

Int32 height { __get; __set; }

 

Property height() As Int32

isMap

 

property isMap: Boolean read write;

 

Boolean isMap { get; set; }

 

var isMap: Boolean { get{} set{} }

 

Boolean isMap { __get; __set; }

 

Property isMap() As Boolean

loading

 

property loading: String read write;

 

String loading { get; set; }

 

var loading: String { get{} set{} }

 

String loading { __get; __set; }

 

Property loading() As String

naturalHeight

 

property naturalHeight: Int32 read;

 

Int32 naturalHeight { get; }

 

var naturalHeight: Int32 { get{} }

 

Int32 naturalHeight { __get; }

 

ReadOnly Property naturalHeight() As Int32

naturalWidth

 

property naturalWidth: Int32 read;

 

Int32 naturalWidth { get; }

 

var naturalWidth: Int32 { get{} }

 

Int32 naturalWidth { __get; }

 

ReadOnly Property naturalWidth() As Int32

referrerPolicy

 

property referrerPolicy: dynamic read write;

 

dynamic referrerPolicy { get; set; }

 

var referrerPolicy: dynamic { get{} set{} }

 

dynamic referrerPolicy { __get; __set; }

 

Property referrerPolicy() As dynamic

sizes

 

property sizes: dynamic read write;

 

dynamic sizes { get; set; }

 

var sizes: dynamic { get{} set{} }

 

dynamic sizes { __get; __set; }

 

Property sizes() As dynamic

src

 

property src: String read write;

 

String src { get; set; }

 

var src: String { get{} set{} }

 

String src { __get; __set; }

 

Property src() As String

srcset

 

property srcset: String read write;

 

String srcset { get; set; }

 

var srcset: String { get{} set{} }

 

String srcset { __get; __set; }

 

Property srcset() As String

useMap

 

property useMap: String read write;

 

String useMap { get; set; }

 

var useMap: String { get{} set{} }

 

String useMap { __get; __set; }

 

Property useMap() As String

width

 

property width: Int32 read write;

 

Int32 width { get; set; }

 

var width: Int32 { get{} set{} }

 

Int32 width { __get; __set; }

 

Property width() As Int32

x

 

property x: Double read;

 

Double x { get; }

 

var x: Double { get{} }

 

Double x { __get; }

 

ReadOnly Property x() As Double

y

 

property y: Double read;

 

Double y { get; }

 

var y: Double { get{} }

 

Double y { __get; }

 

ReadOnly Property y() As Double

 

decode

Returns a Promise that resolves when the image is decoded and it's safe to append the image to the DOM. This prevents rendering of the next frame from having to pause to decode the image, as would happen if an undecoded image were added to the DOM.

 

method decode: dynamic

 

dynamic decode()

 

func decode() -> dynamic

 

dynamic decode()

 

Function decode() As dynamic