I’m having trouble gettting the size of the border to match the text.
It seems a bit like a catch 22 in that the size of the text is not known until render.
So getting the bounds of a new caption before rendering is incorrect.
Ok so what I’ve done is use
vtkTextRenderer::GetInstance()->GetBoundingBox(textProperty,unicode,ibbox,renderer->GetRenderWindow()->GetDPI());
Then I map the bbox from display to normalized view coordinates.
I then set Point2 to the width and height.
But that makes the box (and the text) way to small), so the width seems incorrect.
Any advice appreciated (perhaps I’m missing something simple?)
Thanks
Rick
So, I must be not understanding