Lets suppose that in my custom repaint method, I create a painter and set a window size of, say ( -5000, -5000, 10000, 10000) and start to draw various points in to the window. Is there any way to query the painter for a bounding rectangle for only the points that I draw?
I would like to know because it would make scaling easier. IOW, I can scale such that all of my data points are contained in the viewport.
I get the feeling that I am going to have to keep track of it myself as I am painting and then scale it, but I wonder if the painter has such a capability.
Mic.
Bookmarks