Class Thumbnail
Namespace: Aspose.Imaging.Xmp.Types.Complex.Thumbnail
Assembly: Aspose.Imaging.dll (25.4.0)
Represents thumbnail image for a file.
[JsonObject(MemberSerialization.OptIn)]
public sealed class Thumbnail : ComplexTypeBase, IXmpType, ICloneable
Inheritance
object ← XmpTypeBase ← ComplexTypeBase ← Thumbnail
Implements
Inherited Members
ComplexTypeBase.GetXmpRepresentation() , ComplexTypeBase.Prefix , ComplexTypeBase.NamespaceUri , XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Thumbnail()
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Thumbnail.Thumbnail class.
[JsonConstructor]
public Thumbnail()
Thumbnail(int, int)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Thumbnail.Thumbnail class.
public Thumbnail(int width, int height)
Parameters
width
int
The width.
height
int
The height.
Properties
Height
Gets or sets the height.
public int Height { get; set; }
Property Value
Exceptions
value;Height could not be less than zero
ImageBase64
Gets or sets the image in base64 format.
[JsonProperty]
public string ImageBase64 { get; set; }
Property Value
Width
Gets or sets the width.
public int Width { get; set; }
Property Value
Exceptions
value;Width could not be less than zero
Methods
GetXmpRepresentation()
Gets the string contained value in XMP format.
public override string GetXmpRepresentation()
Returns
Returns the string contained value in XMP format.