User Profile
Collapse
-
Yes, I do.... -
How do I draw primitive shapes in VC++
Hi,
I just want to draw primitive shapes like lines,circles,r ectangles etc.
I found a method :
Graphics.drawli ne(Pen,x1,y1,x2 ,y2)
The code I used is as follows:
Pen blackPen = gcnew Pen( Color::Black,3. 0f );
Point point1 = Point(100,100);
Point point2 = Point(500,100);
Graphics.DrawLi ne( blackPen, 10,10,50,70 );
I get the error that :'Pen' : undeclared identifier...
No activity results to display
Show More
Leave a comment: