Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

DrawingBoard2 - A .Net GDI+ Drawing component (with source)

DZone's Guide to

DrawingBoard2 - A .Net GDI+ Drawing component (with source)

·
Free Resource

Nazmi Altun's Blog - .NET GDI+ Drawing Component : DrawingBoard2

In one of my projects i have needed , a gdi+ drawing library for drawing simple geometrical shapes. So, found this graphical editor, KLONK Drawing Board . Its written in C# and GDI+ is used for drawing. It isnt a great component, but it was the most extensive open source project i 've found.It has many features , but it has no documentation and source code is a bit difficult to understand. I also couldn't find some shapes i need, such as Triangle . So , i've created my version , DrawingBoard2.

DrawingBoard2 is recomposed version of KLONK Drawing Board . A few features are also added.

image

What's new in this version?

  • New polygon shapes are added : Triangles( Right triangle and , Equaliteral triangle) , Hexagon, Pentagon, Trapezoid and other polygons.
  • Pie shape is added.
  • Table is added.
  • 3D Cube shape is added
  • Cartesian Plane is added
  • XML Serialization feature. Now shapes can be serialized/deserialized in XML format
  • Bitmap export. Now , drawing board can be exported as bitmap file.
  • Source code is recomposed , and documented

I thought this project and control pretty cool and the fact the source is available even cooler. This isn't the kind of control you see often...

Here's a snap of the sample project

SNAGHTML25493cb5

And of it running (which ran for me the first time);

SNAGHTML254a3871

Here's just a taste of what can be drawn;

image

Topics:

Published at DZone with permission of Greg Duncan, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}