XmpThumbnail

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage, com.groupdocs.metadata.core.XmpMetadataContainer, com.groupdocs.metadata.core.XmpComplexType

public final class XmpThumbnail extends XmpComplexType

Represents a thumbnail image for a file.

Constructors

Constructor Description
XmpThumbnail() Initializes a new instance of the XmpThumbnail class.
XmpThumbnail(int width, int height) Initializes a new instance of the XmpThumbnail class.

Methods

Method Description
getWidth() Gets the image width in pixels.
setWidth(Integer value) Sets the image width in pixels.
getHeight() Gets the image height in pixels.
setHeight(Integer value) Sets the image height in pixels.
getImageBase64() Gets the full thumbnail image data, converted to base 64 notation.
setImageBase64(String value) Sets the full thumbnail image data, converted to base 64 notation.
getImageData() Gets the image data.
getFormat() Gets the image format.
setFormat(String value) Sets the image format.

XmpThumbnail()

public XmpThumbnail()

Initializes a new instance of the XmpThumbnail class.

XmpThumbnail(int width, int height)

public XmpThumbnail(int width, int height)

Initializes a new instance of the XmpThumbnail class.

Parameters:

Parameter Type Description
width int The width.
height int The height.

getWidth()

public final Integer getWidth()

Gets the image width in pixels.

Returns: java.lang.Integer - The thumbnail width.

setWidth(Integer value)

public final void setWidth(Integer value)

Sets the image width in pixels.

Parameters:

Parameter Type Description
value java.lang.Integer The thumbnail width.

getHeight()

public final Integer getHeight()

Gets the image height in pixels.

Returns: java.lang.Integer - The thumbnail height.

setHeight(Integer value)

public final void setHeight(Integer value)

Sets the image height in pixels.

Parameters:

Parameter Type Description
value java.lang.Integer The thumbnail height.

getImageBase64()

public final String getImageBase64()

Gets the full thumbnail image data, converted to base 64 notation.

Returns: java.lang.String - The full thumbnail image data, converted to base 64 notation.

setImageBase64(String value)

public final void setImageBase64(String value)

Sets the full thumbnail image data, converted to base 64 notation.

Parameters:

Parameter Type Description
value java.lang.String The full thumbnail image data, converted to base 64 notation.

getImageData()

public final byte[] getImageData()

Gets the image data.

Returns: byte[] - The image data.

getFormat()

public final String getFormat()

Gets the image format. Defined value: JPEG.

Returns: java.lang.String - The thumbnail format.

setFormat(String value)

public final void setFormat(String value)

Sets the image format. Defined value: JPEG.

Parameters:

Parameter Type Description
value java.lang.String The thumbnail format.