简体   繁体   中英

Drawing within C# within a Picturebox

I want to be able to allow users of my program to click on a button, for example, a button for freehand rectangles to be drawn onto a picturebox. I need code for allowing me to first draw on the picturebox, and secondly for all the shapes that can possibly be drawn free hand in c#, eg line, ellipse, freehand drawing, text.

Thanks in advance,

Chris

This seems closely related to this question: Drawing with Graphics class in C#

Which links to a pretty good looking article on CodeProject: http://www.codeproject.com/KB/graphics/drawtools.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM