Interface Image
-
- All Superinterfaces:
ContentAccess
,Serializable
- All Known Implementing Classes:
BytesImage
,ImageResource
public interface Image extends ContentAccess
Represents an image. Implementations can choose whether to explicitly store the byte[] or fetch it from some sort of streaming resource as needed to service theContentAccess.getBytes()
method as needed.- Since:
- 1.0.0
- Author:
- James Gifford, Martin Shevchenko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Dimension
getSize()
-
Methods inherited from interface com.github.bordertech.wcomponents.ContentAccess
getBytes, getDescription, getMimeType
-
-
-
-
Method Detail
-
getSize
Dimension getSize()
- Returns:
- the natural size of the image, or null if no natural size is known. If only one dimension is known, use a negative value (eg, -1) for the other dimension.
-
-