Hi,
I use the following lines to get the screen coordinates of the view and then capture it. This works in v8i but in Connect the Y coordinates aren't correct.
BSIRect viewRect; mdlView_getViewRectangle(&viewRect, mdlWindow_viewWindowGet(viewId), DgnCoordSystem::Screen); mdlImage_captureScreen(&dataPt, &viewRect, 0, IMAGEFORMAT_RGB);
The problem is that the Y coordinates in the viewRect are to small. If the ribbon in Connect is visible, they are about 147 pixels to small. If the ribbon is hidden they are about 52 pixels to small. Both Y coordinates are off the same offset so the rectangle height is correct.
To me it looks like Connect tries to compensate for the ribbons but don't succeed very well.
There is another post in this forum that is similar ( search for mdlView_pointToScreen() ) but it hasn't been resolved so I raise the question again in a new thread.
Does anyone know anything about this problem?
I have tested both in Update and in Update2 with then new SDK.
Thanks
Christian