[vtkusers] Annotating an image with text

Jérôme jerome.velut at gmail.com
Wed Dec 9 14:29:47 EST 2009


You can use SetPosition in vtkTextActor to place a string everywhere in the
image. For file writing, why not using vtkWindowToImageFilter?

BTW, I sent a mail mentioning a segfault caused by vtkTextActor ("vtkTextActor
segfaults my render window"). Did you try to use it? Am I the only one?

Jerome

2009/12/9 David Doria <daviddoria+vtk at gmail.com <daviddoria%2Bvtk at gmail.com>
>

> If you are displaying the image, I realize vtkTextActor and
> vtkTextSource exist. However, is there something more like
> vtkImageCanvasSource2D that will allow you to add a character or
> string at a pixel location (and actually store these changed pixels in
> the image so it can be written to a file).
>
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091209/5716deaf/attachment.htm>


More information about the vtkusers mailing list