API Reference 0.3.24dart_web_toolkit_resourceImageResource

ImageResource abstract class

Provides access to image resources at runtime.

abstract class ImageResource extends ResourcePrototype {

 /**
  * Returns the height of the image.
  */
 int get height;

 /**
  * Returns the horizontal position of the image within the composite image.
  */
 int get left;

 /**
  * Returns the URL for the composite image that contains the ImageResource.
  */
 SafeUri get url;

 /**
  * Returns the vertical position of the image within the composite image.
  */
 int get top;

 /**
  * Returns the width of the image.
  */
 int get width;

 /**
  * Return <code>true</code> if the image contains multiple frames.
  */
 bool get animated;
}

Extends

ResourcePrototype > ImageResource

Subclasses

ImageResourcePrototype

Properties

final bool animated #

Return <code>true</code> if the image contains multiple frames.

bool get animated;

final int height #

Returns the height of the image.

int get height;

final int left #

Returns the horizontal position of the image within the composite image.

int get left;

final String name #

inherited from ResourcePrototype

Returns the name of the function within the ClientBundle used to create the ResourcePrototype.

@return the name of the function within the ClientBundle used to create the

    ResourcePrototype
String get name;

final int top #

Returns the vertical position of the image within the composite image.

int get top;

final SafeUri url #

Returns the URL for the composite image that contains the ImageResource.

SafeUri get url;

final int width #

Returns the width of the image.

int get width;