Class ImageMetaData

This class represents the image meta data, e.g. width and height.

See Also:

Property Summary 

PropertyDescription
height: Number (read-only)Returns the image height.
width: Number (read-only)Returns the image width.

Constructor Summary 

This class does not have a constructor, so you cannot create it directly.

Method Summary 

MethodDescription
getHeight()Returns the image height.
getWidth()Returns the image width.

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Property Details 

height 

height: Number (read-only)

Returns the image height.


width 

width: Number (read-only)

Returns the image width.


Method Details 

getHeight() 

getHeight(): Number

Returns the image height.

Returns:

  • the image height in pixel

getWidth() 

getWidth(): Number

Returns the image width.

Returns:

  • the image width in pixel