# 2-D drawing

**URL:** https://discourse.vtk.org/t/2-d-drawing/1010
**Category:** Development
**Created:** [May 23, 2019, 2:24pm UTC](https://discourse.vtk.org/t/2-d-drawing/1010 "2019-05-23T14:24:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kevin\_Hall](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kevin_hall/32/467_2.png) [@Kevin\_Hall](https://discourse.vtk.org/u/Kevin_Hall)
#### Post date: [May 23, 2019, 2:24pm UTC](https://discourse.vtk.org/t/2-d-drawing/1010/1 "2019-05-23T14:24:19Z")

</div>

I’m investigating using VTK for some 3-d model animations, but the application I’m working on also needs a 2-d drawing area with ability to draw straight lines, points, and text. Does VTK easily support this type of 2-d drawing area? If so, what classes should I start looking at?

Thank you for the help. I’ve searched online for tutorials and information on this, but I couldn’t find anything. Thanks again.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [May 23, 2019, 2:30pm UTC](https://discourse.vtk.org/t/2-d-drawing/1010/2 "2019-05-23T14:30:57Z")

</div>

[vtkImageCanvasSouce2D](https://vtk.org/doc/nightly/html/classvtkImageCanvasSource2D.html) might be helpful. I haven’t used it, though. This class generates a `vtkImageData` that you would then need to display.

[vtkContext2D](https://vtk.org/doc/nightly/html/classvtkContext2D.html) may also be helpful. It is a more direct way to render 2D primitives.

---

<div class="post-metadata">

### Author: ![Kevin\_Hall](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kevin_hall/32/467_2.png) [@Kevin\_Hall](https://discourse.vtk.org/u/Kevin_Hall)
#### Post date: [May 23, 2019, 3:11pm UTC](https://discourse.vtk.org/t/2-d-drawing/1010/3 "2019-05-23T15:11:43Z")

</div>

Thank you!
