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.