Class Dimensions

Class Dimensions

名称: Aspose.Imaging.Xmp.Types.Complex.Dimensions 收藏: Aspose.Imaging.dll (25.4.0)

包含对象的尺寸。

[JsonObject(MemberSerialization.OptIn)]
public sealed class Dimensions : ComplexTypeBase, IXmpType, ICloneable

Inheritance

object XmpTypeBase ComplexTypeBase Dimensions

Implements

IXmpType , ICloneable

继承人

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

Dimensions()

启动了 Aspose.Imaging.Xmp.Types.Complex.Dimensions.Dimensions 类的新例子。

[JsonConstructor]
public Dimensions()

Dimensions(航海,航海)

启动了 Aspose.Imaging.Xmp.Types.Complex.Dimensions.Dimensions 类的新例子。

public Dimensions(float width, float height)

Parameters

width float

宽度。

height float

身高。

Properties

Height

接收或设置高度。

public float Height { get; set; }

财产价值

float

Exceptions

ArgumentOutOfRangeException

值;高度不能低于零

Units

接收或设置单位。

[JsonProperty]
public string Units { get; set; }

财产价值

string

Examples

例如:英寸、毫米、像素、皮卡、点等。

Width

接收或设置宽度。

public float Width { get; set; }

财产价值

float

Exceptions

ArgumentOutOfRangeException

值;宽度不能低于零

Methods

GetXmpRepresentation()

以 XMP 格式获取包含的字符串值。

public override string GetXmpRepresentation()

Returns

string

返回在 XMP 格式中包含的字符串值。

 中文