Use of a graphics.h library in C++ builder 6

GeorgeH (2)
Hi,

If this topic was discussed somewhere else please re-direct me there.

I have been coding in C ( Turbo C , Dev C++) . Have been using <graphics.h> lib for some simple graphics. Now I started with Borland C++ Builder 6 , and I see this library is obsolete , and forces me to use object programing to do simple drawing.

What I am asking is there some way to draw a line(for example) in C++ builder , like I was used to in the old Turbo C or Dev C++ with <graphics.h> library???

An code example would be great!
Many thanks in advance for your support!
Athar (4466)
You can use MoveTo and LineTo for anything that has a canvas (such as forms and images).

http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Graphics_TCanvas_LineTo.html

Full list of TCanvas methods:
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/_!!MEMBEROVERVIEW_Graphics_TCanvas_14_Public_Methods.html
Last edited on
Topic archived. No new replies allowed.