Time

Inheritance: java.lang.Object, com.aspose.imaging.xmp.types.XmpTypeBase

public final class Time extends XmpTypeBase

Representation of a time value in seconds.

Constructors

ConstructorDescription
Time(Rational scale, int value)Initializes a new instance of the Time class.

Methods

MethodDescription
getScale()Gets or sets scale for the time value.
setScale(Rational value)Gets or sets scale for the time value.
getValue()Gets or sets time value in the specified scale.
setValue(int value)Gets or sets time value in the specified scale.
getXmpRepresentation()Gets the string contained value in XMP format.

Time(Rational scale, int value)

public Time(Rational scale, int value)

Initializes a new instance of the Time class.

Parameters:

ParameterTypeDescription
scaleRationalThe scale.
valueintThe value.

getScale()

public Rational getScale()

Gets or sets scale for the time value.

For NTSC, use 1001/30000, or the less accurate 100/2997. For PAL, use 1/25. Value: The scale for the time value.

Returns: Rational

setScale(Rational value)

public void setScale(Rational value)

Gets or sets scale for the time value.

For NTSC, use 1001/30000, or the less accurate 100/2997. For PAL, use 1/25. Value: The scale for the time value.

Parameters:

ParameterTypeDescription
valueRational

getValue()

public int getValue()

Gets or sets time value in the specified scale.

Value: The time value in the specified scale.

Returns: int

setValue(int value)

public void setValue(int value)

Gets or sets time value in the specified scale.

Value: The time value in the specified scale.

Parameters:

ParameterTypeDescription
valueint

getXmpRepresentation()

public String getXmpRepresentation()

Gets the string contained value in XMP format.

Returns: java.lang.String - Returns the string contained value in XMP format.