public class DynamicImage extends Object implements Image
| Constructor and Description |
|---|
DynamicImage(String text)
Creates a ProductImage.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getDescription()
Retrieves some text that describes the image, for example the document filename or title.
|
String |
getMimeType()
Retrieves the mime type of the image - "image/jpeg", "image/gif" etc.
|
Dimension |
getSize()
Retrieves the natural size of the image.
|
public DynamicImage(String text)
text - the text to display in the image.public String getMimeType()
getMimeType in interface ContentAccesspublic Dimension getSize()
public byte[] getBytes()
getBytes in interface ContentAccesspublic String getDescription()
getDescription in interface ContentAccessCopyright © 2024. All rights reserved.