Dimensions Class

Summary: Containing dimensions for a drawn object.

Module: aspose.imaging.xmp.types.complex.dimensions

Full Name: aspose.imaging.xmp.types.complex.dimensions.Dimensions

Inheritance: IXmpType, ComplexTypeBase

Aspose.Imaging Version: 24.5.0

Constructors

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

Properties

NameTypeAccessDescription
heightfloatr/wGets or sets the height.
namespace_uristringrGets the default namespace URI.
prefixstringrGets the prefix.
unitsstringr/wGets or sets units.
widthfloatr/wGets or sets the width.

Methods

NameDescription
get_xmp_representation()Gets the string contained value in XMP format.

Constructor: Dimensions()

 Dimensions() 

Initializes a new instance of the Dimensions class.

Constructor: Dimensions(width, height)

 Dimensions(width, height) 

Initializes a new instance of the Dimensions class.

Parameters:

ParameterTypeDescription
widthfloatThe width.
heightfloatThe height.

Method: get_xmp_representation()

 get_xmp_representation() 

Gets the string contained value in XMP format.

Returns

TypeDescription
stringReturns the string contained value in XMP format.