Click here to Skip to main content
Rate this: bad
good
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
[removed]@gmail.com
Posted 6-Jan-12 6:27am
Edited 6-Jan-12 7:47am
v3
Comments
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...
--SA

1 solution

Rate this: bad
good
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...
like:
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
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...
  Permalink  
v2
Comments
mr_305_df at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 548
1 CHill60 390
2 OriginalGriff 323
3 BillWoodruff 213
4 PIEBALDconsult 185


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