In fact I am using astroroot, but I think this refers directly to TASImage.
How do I get information, what area was selected and zoomed with a mouse?
Desperately, I’ve tried:
cout << "zooomed: " << ((TASImage*)disp[i]->GetScaledImage())->GetScaledWidth() << " " << ((TASImage*)disp[i]->GetScaledImage())->GetScaledHeight() << endl;
cout << "zooomed: " << ((TASImage*)disp[i]->GetScaledImage())->GetWidth() << " " << ((TASImage*)disp[i]->GetScaledImage())->GetHeight() << endl;
cout << "zooomed: " << disp[i]->GetWidth() << " " << disp[i]->GetHeight() << endl;
cout << "zooomed: " << disp[i]->GetScaledWidth() << " " << disp[i]->GetScaledHeight() << endl;
where disp[i] is of AstroImage class which derives from TASImage.
In each case, same result is displayed - width and height in screen coordinates, not in original image coordinates, where, as I understand, GetHeight and GetWidth() should return results in image coordinates.
Also, how can I get position of a corner fo zoomed image?