Measurement Class

Summary: A number that indicates a render measurement.

Module: aspose.gis.rendering

Full Name: aspose.gis.rendering.Measurement

Aspose.PSD Version: 25.9.0

Constructors

NameDescription
Measurement()Initializes a new instance of the Measurement class
Measurement(value, unit)Creates new instance.

Properties

NameTypeAccessDescription
unitUnitrA unit of measurement.
valuedoublerA number that indicates the length of the measurement.
zero [static]MeasurementrA measurement of zero length.

Methods

NameDescription
inches(value)Returns a new instance of Measurement that represents length in inches.
map_units(value)Returns a new instance of Measurement that represents length in maps Spatial Reference units.
meters_on_earth(value)Returns a new instance of Measurement that represents length in meters on the Earth.
millimeters(value)Returns a new instance of Measurement that represents length in millimeters.
pixels(value)Returns a new instance of Measurement that represents length in pixels.
points(value)Returns a new instance of Measurement that represents length in points.

Constructor: Measurement()

 Measurement() 

Initializes a new instance of the Measurement class

Constructor: Measurement(value, unit)

 Measurement(value, unit) 

Creates new instance.

Parameters:

ParameterTypeDescription
valuedoubleA number that indicates the length of the measurement.
unitUnitA unit of measurement.

Method: inches(value) [static]

 inches(value) 

Returns a new instance of Measurement that represents length in inches.

Parameters:

ParameterTypeDescription
valuedoubleNumber of inches.

Returns

TypeDescription
MeasurementNew instance of Measurement class.

Method: map_units(value) [static]

 map_units(value) 

Returns a new instance of Measurement that represents length in maps Spatial Reference units.

Parameters:

ParameterTypeDescription
valuedoubleNumber of units.

Returns

TypeDescription
MeasurementNew instance of Measurement class.

Method: meters_on_earth(value) [static]

 meters_on_earth(value) 

Returns a new instance of Measurement that represents length in meters on the Earth.

Parameters:

ParameterTypeDescription
valuedoubleNumber of meters.

Returns

TypeDescription
MeasurementNew instance of Measurement class.

Method: millimeters(value) [static]

 millimeters(value) 

Returns a new instance of Measurement that represents length in millimeters.

Parameters:

ParameterTypeDescription
valuedoubleNumber of millimeters.

Returns

TypeDescription
MeasurementNew instance of Measurement class.

Method: pixels(value) [static]

 pixels(value) 

Returns a new instance of Measurement that represents length in pixels.

Parameters:

ParameterTypeDescription
valuedoubleNumber of pixels.

Returns

TypeDescription
MeasurementNew instance of Measurement class.

Method: points(value) [static]

 points(value) 

Returns a new instance of Measurement that represents length in points.

Parameters:

ParameterTypeDescription
valuedoubleNumber of points.

Returns

TypeDescription
MeasurementNew instance of Measurement class.