Dart API Referencedart:htmlImageElement

ImageElement Interface

DOM image objects expose the HTMLImageElement (or HTML 4 HTMLImageElement) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of input elements.

Extends

Element

Constructors

Code new ImageElement([String src, int width, int height]) #

ImageElement([String src, int width, int height]);

Fields

Code String align #

Indicates the alignment of the image with respect to the surrounding context.
String align;

Code String alt #

Reflects the alt HTML attribute, indicating fallback context for the image.
String alt;

Code String border #

Width of the border around the image.
String border;

Code final bool complete #

True if the browser has fetched the image, and it is in a supported image type that was decoded without errors.
final bool complete;

Code String crossOrigin #

The CORS setting for this image element. See CORS settings attributes for details.
String crossOrigin;

Code int height #

Reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels.
int height;

Code int hspace #

Space to the left and right of the image.
int hspace;

Code bool isMap #

Reflects the ismap HTML attribute, indicating that the image is part of a server-side image map.
bool isMap;

Code String longDesc #

URI of a long description of the image.
String longDesc;

Code String lowsrc #

A reference to a low-quality (but faster to load) copy of the image.
String lowsrc;

Code String name #

String name;

Code final int naturalHeight #

Intrinsic height of the image in CSS pixels, if it is available; otherwise, 0.
final int naturalHeight;

Code final int naturalWidth #

Intrinsic width of the image in CSS pixels, if it is available; otherwise, 0.
final int naturalWidth;

Code String src #

Reflects the src HTML attribute, containing the URL of the image.
String src;

Code String useMap #

Reflects the usemap HTML attribute, containing a partial URL of a map element.
String useMap;

Code int vspace #

Space above and below the image.
int vspace;

Code int width #

Reflects the width HTML attribute, indicating the rendered width of the image in CSS pixels.
int width;

Code final int x #

final int x;

Code final int y #

final int y;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.