------------------------------------------------------------------------------
| 35 | |
| 36 | //------------------------------------------------------------------------------ |
| 37 | vtkVector2i vtkTextRendererStringToImage::GetBounds( |
| 38 | vtkTextProperty* property, const vtkStdString& string, int dpi) |
| 39 | { |
| 40 | vtkVector2i recti(0, 0); |
| 41 | int tmp[4]; |
| 42 | if (!property || string.empty()) |
| 43 | { |
| 44 | return recti; |
| 45 | } |
| 46 | |
| 47 | this->Implementation->TextRenderer->GetBoundingBox(property, string, tmp, dpi); |
| 48 | |
| 49 | recti.Set(tmp[1] - tmp[0] + 1, tmp[3] - tmp[2] + 1); |
| 50 | |
| 51 | return recti; |
| 52 | } |
| 53 | |
| 54 | //------------------------------------------------------------------------------ |
| 55 | int vtkTextRendererStringToImage::RenderString(vtkTextProperty* property, |
nothing calls this directly
no test coverage detected