Click here to Skip to main content
13,192,855 members (63,254 online)
Rate this:
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
Updated 6-Jan-12 7:47am
SAKryukov 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171017.2 | Last Updated 6 Jan 2012
Copyright © CodeProject, 1999-2017
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