Aspose::Pub::Utils::Coord class
Contents
[
Hide
]Coord class
This class designed to represent data related to coordinates of PUB fields. Every field in PUB holds coordinates has 2 pairs of coordinates: coordinates of upper-left corner (XLeft, YTop) and coordinates of bottom-right corner(XRight, YBottom). All coordinates represented in special metric system - English Metric Unit(EMUs). Additional methods were added into this class to transform coordinate values from english metric units into inches.
class Coord : public System::ICloneable
Methods
Method | Description |
---|---|
CalculateHeight() | Calculates height of figure(current Coord object) and returns result in inches. |
CalculateWidth() | Calculates width of figure(current Coord object) and returns result in inches. |
CalculateX(double) | Transforms value for X-coordinate from natural PUB metric system into inches. |
CalculateX() | Transforms value for X-coordinate from natural PUB metric system into inches. |
CalculateY(double) | Transforms value for Y-coordinate from natural PUB metric system into inches. |
CalculateY() | Transforms value for Y-coordinate from natural PUB metric system into inches. |
Clone() override | Created copy of object. |
Coord() | Constructor. |
Coord(int32_t, int32_t, int32_t, int32_t) | Constructor. |
get_XLeft() const | X-coordinate of upper-left corner in EMUs. |
get_XRight() const | X-coordinate of bottom-right corner in EMUs. |
get_YBottom() const | Y-coordinate of bottom-right corner in EMUs. |
get_YTop() const | Y-coordinate of upper-left corner in EMUs. |
GetHeight() | Returns height of current Coord object in natural PUB metrics. |
GetWidth() | Returns width of current Coord object in natural PUB metrics. |
See Also
- Class ICloneable
- Namespace Aspose::Pub::Utils
- Library Aspose.PUB for C++