Click here to Skip to main content
15,881,840 members
Please Sign up or sign in to vote.
1.25/5 (4 votes)
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
[removed]@gmail.com
Posted
Updated 6-Jan-12 7:47am
v3
Comments
Sergey Alexandrovich Kryukov 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...
--SA

1 solution

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

C#
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)
C#
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...
like:
C#
Bitmap bmp=new Bitmap();
now instead of the thing i tol you above use:
C#
Graphics g= Graphics.FromImage(bmp); //(i'm not sure... it's some thing like this)

//Draw codes
PictureBox1.Image=bmp;

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...
 
Share this answer
 
v2
Comments
mr_305_df 6-Jan-12 13:50pm    
http://aramo.files.wordpress.com/2009/08/gene41.gif?w=464&h=404
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900