public final class Image extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Image.Format
The format of an image.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
byte[] |
getData()
Gets the raw data of the image.
|
String |
getDataUri()
Gets a data URI for this image.
|
Image.Format |
getFormat()
Gets the format of the image.
|
String |
getHash()
Gets the Base64-encoded data of the image.
|
int |
hashCode() |
static Image |
ofRaw(byte[] data,
Image.Format format)
Constructs an
Image utilizing raw image data. |
static Mono<Image> |
ofUrl(String url)
Constructs an
Image using the resource at the given url. |
String |
toString() |
public static Image ofRaw(byte[] data, Image.Format format)
Image
utilizing raw image data.data
- The raw image data.format
- The Image.Format
of the data.Image
with raw image data.public static Mono<Image> ofUrl(String url)
Image
using the resource at the given url.public byte[] getData()
public Image.Format getFormat()
public String getHash()
public String getDataUri()