public class SpotImage extends Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
image |
Constructor and Description |
---|
SpotImage(byte[] image)
Constructor that takes the image as a byte array.
|
Modifier and Type | Method and Description |
---|---|
int |
getBytes()
Get the number of bytes of the image.
|
byte[] |
getImage()
Get the image as an array of bytes.
|
InputStream |
getInputStream()
Get an
InputStream of the image. |
SpotImage(byte[] image)
image
- Byte array of a PNG imagepublic InputStream getInputStream()
InputStream
of the image.InputStream
public byte[] getImage()
public int getBytes()