
## Unit class

Provides the base class for units of measurement.



The Unit type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [unit_type](/html/python-net/aspose.html.drawing/unit/unit_type) | Gets the unit type of the [`Unit`](/html/python-net/aspose.html.drawing/unit). |


### Methods
| Method | Description |
| :- | :- |
| [equals](/html/python-net/aspose.html.drawing/unit/equals/#aspose.html.drawing.Unit) | Determines whether the specified [`Unit`](/html/python-net/aspose.html.drawing/unit), is equal to this instance. |
| [from_centimeters](/html/python-net/aspose.html.drawing/unit/from_centimeters/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in centimeters. |
| [from_millimeters](/html/python-net/aspose.html.drawing/unit/from_millimeters/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in millimeters. |
| [from_quarter_millimeters](/html/python-net/aspose.html.drawing/unit/from_quarter_millimeters/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in quarter-millimeters. |
| [from_inches](/html/python-net/aspose.html.drawing/unit/from_inches/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in inches. |
| [from_picas](/html/python-net/aspose.html.drawing/unit/from_picas/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in picas. |
| [from_points](/html/python-net/aspose.html.drawing/unit/from_points/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in points. |
| [from_pixels](/html/python-net/aspose.html.drawing/unit/from_pixels/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in pixels. |
| [from_degrees](/html/python-net/aspose.html.drawing/unit/from_degrees/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in degrees. |
| [from_gradians](/html/python-net/aspose.html.drawing/unit/from_gradians/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in gradians. |
| [from_radians](/html/python-net/aspose.html.drawing/unit/from_radians/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in radians. |
| [from_turns](/html/python-net/aspose.html.drawing/unit/from_turns/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in turns. |
| [from_seconds](/html/python-net/aspose.html.drawing/unit/from_seconds/#float) | Returns a [`Time`](/html/python-net/aspose.html.drawing/time) object that is represented in seconds. |
| [from_milliseconds](/html/python-net/aspose.html.drawing/unit/from_milliseconds/#float) | Returns a [`Time`](/html/python-net/aspose.html.drawing/time) object that is represented in milliseconds. |
| [from_hertz](/html/python-net/aspose.html.drawing/unit/from_hertz/#float) | Returns a [`Frequency`](/html/python-net/aspose.html.drawing/frequency) object that is represented in hertz. |
| [from_kilo_hertz](/html/python-net/aspose.html.drawing/unit/from_kilo_hertz/#float) | Returns a [`Frequency`](/html/python-net/aspose.html.drawing/frequency) object that is represented in kiloHertz. |
| [from_dots_per_inch](/html/python-net/aspose.html.drawing/unit/from_dots_per_inch/#float) | Returns a [`Resolution`](/html/python-net/aspose.html.drawing/resolution) object that is represented in dots per inch. |
| [from_dots_per_centimeters](/html/python-net/aspose.html.drawing/unit/from_dots_per_centimeters/#float) | Returns a [`Resolution`](/html/python-net/aspose.html.drawing/resolution) object that is represented in dots per centimeters. |
| [from_dots_per_pixel](/html/python-net/aspose.html.drawing/unit/from_dots_per_pixel/#float) | Returns a [`Resolution`](/html/python-net/aspose.html.drawing/resolution) object that is represented in dots per pixels. |



### See Also
* module [`aspose.html.drawing`](..)
* class [`Angle`](/html/python-net/aspose.html.drawing/angle)
* class [`Frequency`](/html/python-net/aspose.html.drawing/frequency)
* class [`Length`](/html/python-net/aspose.html.drawing/length)
* class [`Resolution`](/html/python-net/aspose.html.drawing/resolution)
* class [`Time`](/html/python-net/aspose.html.drawing/time)
* class [`Unit`](/html/python-net/aspose.html.drawing/unit)
