Rational 类
Summary: Represents XMP Rational.
Module: aspose.imaging.xmp.types.derived
Full Name: aspose.imaging.xmp.types.derived.Rational
Inheritance: IXmpType, XmpTypeBase
Constructors
| Name | 描述 |
|---|---|
| Rational(numerator, denominator) | 初始化 Rational 类的新实例。 |
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| 分母 | int | r/w | 获取或设置分母。 |
| float_value | float | r | 获取浮点值。 |
| 分子 | int | r | 获取分子。 |
Methods
| Name | 描述 |
|---|---|
| clone() | 克隆此实例。 |
| get_xmp_representation() | 获取 XMP 格式中包含的字符串值。 |
Constructor: Rational(numerator, denominator)
Rational(numerator, denominator)
初始化 Rational 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 分子 | int | 分子。 |
| 分母 | int | 分母。 |
Method: clone()
clone()
克隆此实例。
Returns
| Type | Description |
|---|---|
| System.Object | 成员逐个克隆。 |
Method: get_xmp_representation()
get_xmp_representation()
获取 XMP 格式中包含的字符串值。
Returns
| Type | Description |
|---|---|
| string | 返回 XMP 格式中包含的字符串值。 |