MCPcopy Create free account
hub / github.com/Kitware/VTK / RenderString

Function RenderString

Rendering/Core/vtkTextRenderer.h:214–218  ·  view source on GitHub ↗

@{ * Given a text property and a string, this function initializes the * vtkImageData *data and renders it in a vtkImageData. * Return true on success, false otherwise. If using the overload that * specifies "textDims", the array will be overwritten with the pixel width * and height defining a tight bounding box around the text in the image, * starting from the upper-right corner. T

Source from the content-addressed store, hash-verified

212 * options.
213 */
214 bool RenderString(vtkTextProperty* tprop, const vtkStdString& str, vtkImageData* data,
215 int textDims[2], int dpi, int backend = Default)
216 {
217 return this->RenderStringInternal(tprop, str, data, textDims, dpi, backend);
218 }
219 ///@}
220
221 ///@{

Callers

nothing calls this directly

Calls 1

RenderStringInternalMethod · 0.45

Tested by

no test coverage detected