[vtkusers] Writing text in an image

David Doria daviddoria at gmail.com
Wed Jul 13 16:21:10 EDT 2011


On Fri, Jul 8, 2011 at 5:10 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Alexis,
>
> Take a look at vtkFreeTypeUtilities, it can render text into a
> vtkImageData.  You can use this to create a small vtkImageData for
> each piece of annotation you need, and then you can use vtkImageBlend
> to overlay these onto your image.  To control the positioning of each
> text block for the overlay, you will have to set the Extent of each
> one so that the extent starts at the position where you want that text
> block to appear in the main image.
>
>  - David


Here is an example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageText

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110713/8a49543d/attachment.htm>


More information about the vtkusers mailing list