We have to draw a line as per the starting & end-point given by the user ..
At the mid point of line a star is to be displayed as the length of line i.e. scaling of star should be there.
** Small star for small line & large star for larger line
The code attached is absolutely correct.
Please tell whether we can draw a line directly without using my pen object.
Is there any other method that reduces Length Of Code.
Loading
NAVNEET VATSPosted Jun 25, 2012, 6:44 AM
You have tried to change my code..
But still I could not get what I expected.
I was asking for the suggestions to reduce the LOC & draw a line without passing my pen object.
Still I got to learn new command e.Graphics from you.
Well tried man but I expected something else
FroglegPosted Jun 25, 2012, 3:37 AM
NAVNEET VATSPosted Jun 25, 2012, 12:08 AM
I have already given the source code & aim of the program ..
You can make desirable changes to the program
FroglegPosted Jun 24, 2012, 3:50 PM
If you're in form paint event you don't need to create graphics
use e.Graphics (PaintEventArgs)