Метод AbsoluteFrame::getTopLeft
Метод возвращает позицию верхней левой точки объекта, тип - Point``<``Unit``>.
Пример
Frame frame = image.getFrame();
if (AbsoluteFrame* absoluteFrame = boost::variant2::get_if<AbsoluteFrame>(&frame))
{
boost::optional<Point<Unit>> topLeft = absoluteFrame->getTopLeft();
if (topLeft.has_value())
{
std::printf("%d %d", topLeft.get().x, topLeft.get().y);
}
}