Click here to Skip to main content
11,703,438 members (72,960 online)
Rate this: bad
Please Sign up or sign in to vote.
I need to do a graphics about a human value (whichever) in c # .. without inserting images ... everything must be drawn by code.
You must use DrawEllipse ... etc. ..

Someone could help me, please ????? I have no idea how to start !!!!!

any solution respond to this email
Posted 6-Jan-12 6:27am
Edited 6-Jan-12 7:47am
SAKryukov at 6-Jan-12 12:41pm
First, it depends on the type of application and UI you did not tag: WPF, Forms, what?
Not clear what's the problem? Well, draw your ellipse, etc...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

use Graphic class in draw/ing namespace
then pass your form/panel.... instance to it

Graphic g= Form1.CreateGraphic(); //(or some thing like this..)
then u can call g and put dot ('.') after it and all function of drawing will appear .

you can crate pen from brushes and bruses from color ...(i'm not sure, you can see if you read tool tips)
Brush b = new SolidBrush(Color.Red);
Pen p = new Pen(brush 1);
and last thing...
if you need to keep data, and dpont let them destroy, first generate a buffer...
Bitmap bmp=new Bitmap();
now instead of the thing i tol you above use:
Graphics g= Graphics.FromImage(bmp); //(i'm not sure... it's some thing like this)

//Draw codes
in this form, you buffer data in Image style variable, and then pass this variable as an image to your image property of image Box...
mr_305_df at 6-Jan-12 13:50pm
I need to make that image ... but in all forms drawing code., ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 540
1 Sergey Alexandrovich Kryukov 400
2 OriginalGriff 340
3 Andy Lanng 124
4 Matt T Heffron 115
0 OriginalGriff 8,519
1 Sergey Alexandrovich Kryukov 7,667
2 CPallini 4,987
3 Maciej Los 4,686
4 Mika Wendelius 3,566

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 6 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100