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
Constructor | Description |
---|---|
Time(Rational scale, int value) | Initializes a new instance of the Time class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
scale | Rational | The scale. |
value | int | The 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:
Parameter | Type | Description |
---|---|---|
value | Rational |
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:
Parameter | Type | Description |
---|---|---|
value | int |
getXmpRepresentation()
public String getXmpRepresentation()
Gets the string contained value in XMP format.
Returns: java.lang.String - Returns the string contained value in XMP format.