public final class Time extends XmpTypeBase
Representation of a time value in seconds.
Constructor and Description |
---|
Time(Rational scale,
int value)
Initializes a new instance of the
Time class. |
Modifier and Type | Method and Description |
---|---|
Rational |
getScale()
Gets or sets scale for the time value.
|
int |
getValue()
Gets or sets time value in the specified scale.
|
String |
getXmpRepresentation()
Gets the string contained value in XMP format.
|
void |
setScale(Rational value)
Gets or sets scale for the time value.
|
void |
setValue(int value)
Gets or sets time value in the specified scale.
|
public Time(Rational scale, int value)
Initializes a new instance of the Time
class.
scale
- The scale.value
- The value.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.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.public int getValue()
Gets or sets time value in the specified scale.
Value: The time value in the specified scale.public void setValue(int value)
Gets or sets time value in the specified scale.
Value: The time value in the specified scale.public String getXmpRepresentation()
Gets the string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class XmpTypeBase