Dimensions

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

public final class Dimensions extends ComplexTypeBase

Containing dimensions for a drawn object.

Constructors

ConstructorDescription
Dimensions()Initializes a new instance of the Dimensions class.
Dimensions(float width, float height)Initializes a new instance of the Dimensions class.

Methods

MethodDescription
getWidth()Gets or sets the width.
setWidth(float value)Gets or sets the width.
getHeight()Gets or sets the height.
setHeight(float value)Gets or sets the height.
getUnits()Gets or sets units.
setUnits(String value)Gets or sets units.
getXmpRepresentation()Gets the string contained value in XMP format.

Dimensions()

public Dimensions()

Initializes a new instance of the Dimensions class.

Dimensions(float width, float height)

public Dimensions(float width, float height)

Initializes a new instance of the Dimensions class.

Parameters:

ParameterTypeDescription
widthfloatThe width.
heightfloatThe height.

getWidth()

public float getWidth()

Gets or sets the width.

Returns: float

setWidth(float value)

public void setWidth(float value)

Gets or sets the width.

Parameters:

ParameterTypeDescription
valuefloat

getHeight()

public float getHeight()

Gets or sets the height.

Returns: float

setHeight(float value)

public void setHeight(float value)

Gets or sets the height.

Parameters:

ParameterTypeDescription
valuefloat

getUnits()

public String getUnits()

Gets or sets units.

For example: inch, mm, pixel, pica, point etc. Value: The units.

Returns: java.lang.String

setUnits(String value)

public void setUnits(String value)

Gets or sets units.

For example: inch, mm, pixel, pica, point etc. Value: The units.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getXmpRepresentation()

public String getXmpRepresentation()

Gets the string contained value in XMP format.

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