Class Thumbnail
Tên không gian: Aspose.Imaging.Xmp.Types.Complex.Thumbnail Tổng hợp: Aspose.Imaging.dll (25.4.0)
Giới thiệu hình ảnh nhỏ cho một tệp.
[JsonObject(MemberSerialization.OptIn)]
public sealed class Thumbnail : ComplexTypeBase, IXmpType, ICloneable
Inheritance
object ← XmpTypeBase ← ComplexTypeBase ← Thumbnail
Implements
Thành viên thừa kế
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()
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Xmp.Types.Complex.Thumbnail.
[JsonConstructor]
public Thumbnail()
Thumbnail(int, int)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.Xmp.Types.Complex.Thumbnail.
public Thumbnail(int width, int height)
Parameters
width
int
Chiều rộng .
height
int
Độ cao .
Properties
Height
Nhận hoặc đặt chiều cao.
public int Height { get; set; }
Giá trị bất động sản
Exceptions
giá trị; chiều cao không thể nhỏ hơn 0
ImageBase64
Nhận hoặc đặt hình ảnh trong định dạng base64.
[JsonProperty]
public string ImageBase64 { get; set; }
Giá trị bất động sản
Width
Nhận hoặc đặt chiều rộng.
public int Width { get; set; }
Giá trị bất động sản
Exceptions
giá trị; chiều rộng không thể nhỏ hơn 0
Methods
GetXmpRepresentation()
Nhận giá trị dòng chứa trong định dạng XMP.
public override string GetXmpRepresentation()
Returns
Trả lại giá trị của string trong định dạng XMP.