| Modifier and Type | Method and Description |
|---|---|
static Img |
toImg(Image image)
Creates a image element by image widget that displays the image at a given URL.
|
static Img |
toImg(Image image,
int width,
int height)
Creates a image element by image widget that displays the image at a given URL, forcing the size.
|
static Img |
toImg(ImageResource image)
Creates a image element by image resource which provides access to image data at runtime.
|
static Img |
toImg(ImageResource image,
int width,
int height)
Creates a image element by image resource which provides access to image data at runtime, forcing the size.
|
static Img |
toImg(String url)
Creates a image element by a data URL which is a URI scheme that provides a way to in-line data in a document, and it's commonly used to embed images in HTML and CSS.
|
static Img |
toImg(String url,
int width,
int height)
Creates a image element by a data URL which is a URI scheme that provides a way to in-line data in a document, and it's commonly used to embed images in HTML and CSS,
forcing the size.
|
public static Img toImg(String url)
url - a URI scheme that provides a way to in-line datanull if argument is not consistentpublic static Img toImg(String url, int width, int height)
url - a URI scheme that provides a way to in-line datawidth - width of imageheight - height of imagenull if argument is not consistentpublic static Img toImg(ImageResource image)
image - image resource instancenull if argument is not consistentpublic static Img toImg(ImageResource image, int width, int height)
image - image resource instancewidth - width of imageheight - height of imagenull if argument is not consistentpublic static Img toImg(Image image)
image - image widget instancenull if argument is not consistentpublic static Img toImg(Image image, int width, int height)
image - image widget instancewidth - width of imageheight - height of imagenull if argument is not consistent