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
Indicates the alignment of the image with respect to the surrounding context.
String align;
Reflects the
alt
HTML attribute, indicating fallback context for the image.
String alt;
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
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;
A reference to a low-quality (but faster to load) copy of the image.
String lowsrc;
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;
Reflects the
src
HTML attribute, containing the URL of the image.
String src;
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;
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.