C/Visual C - graphics.h

 
Vista:

graphics.h

Publicado por jesus (7 intervenciones) el 29/09/2001 08:41:47
De antemano muchas gracias por la respuesta.
No se que pasa con el Borland C++ 5, cuando llamo a la libreria graphics.h , este se raya y me dice que no puede correr bajo windows.
Me parece que es problema de libreria, como hago para importar alguna, o es que tengo problemas con este Borland.
Otra pregunta, en Visual C++, se puede trabajar con graficos? mas especificamente con los archivos jpg?.............gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:graphics.h

Publicado por Armando Nava (127 intervenciones) el 01/10/2001 05:42:28
En esta pagina explican como

http://www.cs.nyu.edu/courses/summer99/V22.0380-001/graph_projs.html

Go to File, New, Project…, and choose a project name by highlighting "Target Name" and changing it (call it "graphics" for now). Check the project path as well.

Change the target type to "DOS (Standard)".

Click the checkbox next to "BGI Graphics" under "Libraries".

Go to "Advanced" and click on ".c node".

Click "Ok" for both windows.

Put this below your #includes:
#define GRAPHPATH "C:\\BC5\\BGI" (but you may need to change the drive letter from C to D, for example).

Double-click on the "whatever_filename.c" node in the project window.

Begin your program as you normally would with "#include <stdio.h>" and "#include <conio.h>", but be sure to add an "#include <graphics.h>" as well. (and then the #define mentioned above).

In your program, include the function "SetupGraphics()" below. You will need this function to set up the graphics screen and to prepare for high-level graphic functions (such as line(), rectangle(), circle(), etc.)

Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:graphics.h

Publicado por jesus (7 intervenciones) el 01/10/2001 08:10:25
Gracias Armando, esa pagina me ayudo mucho.
Sabes de alguna pagina en la que me indiquen los comandos para trabajar en modo grafico en visual C++ , es aqui donde puedo trabajar en Windows y ya no en DOS.
Como inicializar o preparar la pantalla para el modo grafico, como manejar los colores por pixel o grupo de pixel, y todo acerca de los comandos para manipuñar graficos...en Visual C++.
Muy agradecido al que me de alguna orientacion.........
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar