public final class Thumbnail extends XmpComplexType
Represents thumbnail image for a file.
Constructor and Description |
---|
Thumbnail()
Initializes a new instance of the
Thumbnail class. |
Thumbnail(int width,
int height)
Initializes a new instance of the
Thumbnail class. |
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
Gets or sets image format.
|
int |
getHeight()
Gets or sets height.
|
String |
getImageBase64()
Gets or sets image in base64 format.
|
int |
getWidth()
Gets or sets width.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
void |
setFormat(String value)
Gets or sets image format.
|
void |
setHeight(int value)
Gets or sets height.
|
void |
setImageBase64(String value)
Gets or sets image in base64 format.
|
void |
setWidth(int value)
Gets or sets width.
|
getNamespaceUri, getPrefix
toBool, toDateTime, toFloat, toGuid, toInt, toString, toStringArray
public Thumbnail()
Initializes a new instance of the Thumbnail
class.
public Thumbnail(int width, int height)
Initializes a new instance of the Thumbnail
class.
width
- The width.height
- The height.public final int getWidth()
Gets or sets width.
com.aspose.ms.System.ArgumentOutOfRangeException
- Width could not be less than zero.
Value:
Thumbnail width.public final void setWidth(int value)
Gets or sets width.
com.aspose.ms.System.ArgumentOutOfRangeException
- Width could not be less than zero.
Value:
Thumbnail width.public final int getHeight()
Gets or sets height.
com.aspose.ms.System.ArgumentOutOfRangeException
- Height could not be less than zero.
Value:
Thumbnail height.public final void setHeight(int value)
Gets or sets height.
com.aspose.ms.System.ArgumentOutOfRangeException
- Height could not be less than zero.
Value:
Thumbnail height.public final String getImageBase64()
Gets or sets image in base64 format.
Value: Base64 string.public final void setImageBase64(String value)
Gets or sets image in base64 format.
Value: Base64 string.public final String getFormat()
Gets or sets image format. Defined value: JPEG.
Value: Thumbnail format.public final void setFormat(String value)
Gets or sets image format. Defined value: JPEG.
Value: Thumbnail format.public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class XmpComplexType
string
contained XMP representation.Copyright © 2017. All rights reserved.