org.apache.jempbox.xmp
public class Thumbnail extends Object
Version: $Revision: 1.3 $
Field Summary | |
---|---|
static String | FORMAT_JPEG
A supported thumnail format. |
protected Element | parent
The DOM representation of this object. |
Constructor Summary | |
---|---|
Thumbnail(XMPMetadata metadata)
Create a new thumbnail element.
| |
Thumbnail(Element parentElement)
Create a thumnail based on a parent property set.
|
Method Summary | |
---|---|
Element | getElement()
Get the underlying XML element.
|
String | getFormat()
Get the format of the thumbnail. |
Integer | getHeight()
Get the height of the image in pixels.
|
String | getImage()
Get the image data in base 64 encoding.
|
Integer | getWidth()
Get the width of the image in pixels.
|
void | setFormat(String format)
Set the format of the thumbnail, currently only JPEG is supported. |
void | setHeight(Integer height)
Set the height of the element.
|
void | setImage(String image)
Set the image data in base 64 encoding.
|
void | setWidth(Integer width)
Set the width of the element.
|
Parameters: metadata The metadata document that his thumbnail will be part of.
Parameters: parentElement The parent element that will store the thumbnail properties.
Returns: The XML element that this object represents.
Returns: The image format.
Returns: The height of the image in pixels.
Returns: The image data.
Returns: The width of the image in pixels.
Parameters: format The image format.
Parameters: height The updated height of the element.
Parameters: image The image.
Parameters: width The updated width of the element.