public class Thumbnail extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_JPEG
A supported thumnail format.
|
protected Element |
parent
The DOM representation of this object.
|
Constructor and Description |
---|
Thumbnail(Element parentElement)
Create a thumnail based on a parent property set.
|
Thumbnail(XMPMetadata metadata)
Create a new thumbnail element.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String FORMAT_JPEG
protected Element parent
public Thumbnail(XMPMetadata metadata)
metadata
- The metadata document that his thumbnail will be part of.public Thumbnail(Element parentElement)
parentElement
- The parent element that will store the thumbnail properties.public Element getElement()
public Integer getHeight()
public void setHeight(Integer height)
height
- The updated height of the element.public Integer getWidth()
public void setWidth(Integer width)
width
- The updated width of the element.public void setFormat(String format)
format
- The image format.public String getFormat()
public void setImage(String image)
image
- The image.public String getImage()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.