public static class WImageExample.ExampleImage extends Object implements Image
Image.| Constructor and Description |
|---|
ExampleImage(String resource)
Creates an ExampleImage.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getDescription() |
String |
getMimeType() |
Dimension |
getSize() |
void |
setDescription(String aDesc)
Sets the image description.
|
void |
setMimeType(String mimeType)
Sets the imge mime type.
|
void |
setSize(Dimension size)
Sets the image size.
|
public ExampleImage(String resource)
resource - the path to the image file.public String getMimeType()
getMimeType in interface ContentAccesspublic void setMimeType(String mimeType)
mimeType - the image mime type, e.g. image/jpg.public Dimension getSize()
public void setSize(Dimension size)
size - the image size.public byte[] getBytes()
getBytes in interface ContentAccesspublic String getDescription()
getDescription in interface ContentAccesspublic void setDescription(String aDesc)
aDesc - the image description.Copyright © 2024. All rights reserved.