Package eu.webtoolkit.jwt
Class WPainter.Image
java.lang.Object
eu.webtoolkit.jwt.WPainter.Image
- Enclosing class:
- WPainter
An image that can be rendered on a
WPainter.
The image is specified in terms of a URL, and the width and height.
-
Constructor Summary
ConstructorsConstructorDescriptionImage(WAbstractDataInfo info) Creates an image.Image(WAbstractDataInfo info, int width, int height) Creates an image.Creates an image.Creates an image. -
Method Summary
-
Constructor Details
-
Image
Creates an image.Create an image which is located at the uri, and which has dimensions width x height.
-
Image
Creates an image.Create an image which URI and/or file path is given by
info, and which has dimensionswidthxheight.Note: The information required depends on the
WPaintDeviceused. -
Image
Creates an image.Create an image which is located at uri which is available on the local filesystem as file. The image dimensions are retrieved from the file.
-
Image
Creates an image.Create an image which URI and/or file path is given by
info. The image dimensions are retrieved from the file (or the URI if it is a data URI).Note: The information required depends on the
WPaintDeviceused.
-
-
Method Details
-
getUri
Returns the url. -
getInfo
Returns the data info of the image. -
getWidth
public int getWidth()Returns the image width. -
getHeight
public int getHeight()Returns the image height.
-