Class Time

Class Time

Namespace: Aspose.Imaging.Xmp.Schemas.XmpDm
Assembly: Aspose.Imaging.dll (25.4.0)

Representation of a time value in seconds.

[JsonObject(MemberSerialization.OptIn)]
public sealed class Time : XmpTypeBase, IXmpType, ICloneable

Inheritance

object XmpTypeBase Time

Implements

IXmpType , ICloneable

Inherited Members

XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Time(Rational, int)

Initializes a new instance of the Aspose.Imaging.Xmp.Schemas.XmpDm.Time class.

[JsonConstructor]
public Time(Rational scale, int value)

Parameters

scale Rational

The scale.

value int

The value.

Properties

Scale

Gets or sets scale for the time value.

[JsonProperty]
public Rational Scale { get; set; }

Property Value

Rational

Examples

For NTSC, use 1001/30000, or the less accurate 100/2997. For PAL, use 1/25.

Value

Gets or sets time value in the specified scale.

[JsonProperty]
public int Value { get; set; }

Property Value

int

Methods

GetXmpRepresentation()

Gets the string contained value in XMP format.

public override string GetXmpRepresentation()

Returns

string

Returns the string contained value in XMP format.

 English