Package eu.webtoolkit.jwt
Class WPainter.Image
- java.lang.Object
-
- eu.webtoolkit.jwt.WPainter.Image
-
-
Constructor Summary
Constructors Constructor Description Image(WAbstractDataInfo info)Creates an image.Image(WAbstractDataInfo info, int width, int height)Creates an image.Image(java.lang.String url, int width, int height)Creates an image.Image(java.lang.String url, java.lang.String fileName)Creates an image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()Returns the image height.WAbstractDataInfogetInfo()Returns the data info of the image.java.lang.StringgetUri()Returns the url.intgetWidth()Returns the image width.
-
-
-
Constructor Detail
-
Image
public Image(java.lang.String url, int width, int height)Creates an image.Create an image which is located at the uri, and which has dimensions width x height.
-
Image
public Image(WAbstractDataInfo info, int width, int height)
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
public Image(java.lang.String url, java.lang.String fileName)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
public Image(WAbstractDataInfo info)
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 Detail
-
getUri
public java.lang.String getUri()
Returns the url.
-
getInfo
public WAbstractDataInfo getInfo()
Returns the data info of the image.
-
getWidth
public int getWidth()
Returns the image width.
-
getHeight
public int getHeight()
Returns the image height.
-
-