-
How do I draw a line
can someone tell me how I can draw a line in c++...
in qbasic it's like this...Line (20,20)-(30,30),,
-
Re: How do I draw a line
There are 2 Windows API functions:
MoveTo & LineTo
MoveTo is to set the starting point
LineTo draws a line from the coords you specify in MoveTo to the coords you
specify in LineTo
-Brian
"Tony " <ttony1964@netzero.net> wrote:
>
>can someone tell me how I can draw a line in c++...
>
>in qbasic it's like this...Line (20,20)-(30,30),,
-
Re: How do I draw a line
dc.moveto(20,20);
dc.lineto(30,30);
"Tony " <ttony1964@netzero.net> wrote:
>
>can someone tell me how I can draw a line in c++...
>
>in qbasic it's like this...Line (20,20)-(30,30),,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks