views:

97

answers:

2

Can someone reccommend to me a graphics library that meets the following needs:

  • Can be used with either C# or Python

  • The basic functionality that I need is to be able to draw lines and polylines, and to be able to fill in geometric 2d shapes with any colour.

  • Something easy to use that doesnt require hours of reading documentation to understand would be nice.

I've never used a third party graphics library so I don't really know where to start.

Can openGL do this or is that a little overkill??

Thanks!

+1  A: 

Will GDI+ do? It has the features you mention and more, is well documented, has a large community, and is easy to use with managed code.

In .NET, this is exposed through the System.Drawing namespace.

Ani
This looks perfect. It has DrawLine, DrawPolygon and FillRegion + more. Thank you.
rmx
+1  A: 

If you are in C# land then your choices are GDI+ as Ani pointed out, managed DirectX which is now depreciated or the microsoft XNA framework [good tutorials on these last two are here: http://www.riemers.net/eng/Tutorials/xnacsharp.php] You might also consider using mark up languages like WPF or SVG as alternatives if you are just trying to output a series of polygons

GreyCloud