Click to See Complete Forum and Search --> : MS-DOS graphics?


May 16th, 1999, 05:19 PM
I was trying to figure out a way to use graphics commands inside an ms-dos window. Something as simple as being able to draw a line, or change the color of a pixel would be excellent. I read a book on graphics for c++, but the only thing it mentioned was using classes for windows, such as CWnd, and CObject. Also what is a device context, and how is that used?

Dan Haddix
May 16th, 1999, 07:10 PM
A device context is the way Windows allows you to draw to the screen, printer, etc... Unlike old DOS where you had total control over the video card, printer, etc.. Windows only gives you control of a device context and allows you to use it's member functions to draw to the device.

Bhargava
May 16th, 1999, 07:32 PM
If you want MS-Dos graphics use initgraph function to put the text mode screen into
graphics mode.

Find graphics.h header file path.

Chainard Arnaud
May 17th, 1999, 06:33 AM
Hello,

Search On the net Vesa, i work with the 2.0 version 2 or 3 year ago you need to do some routine in ASM but it's a good way to interface all Graphics card ( 640 * 480 => 1280 * 1024 in 16, 256, 24 Bits, 32 Bits in 64K model or flat model