Solved

Dos Programming

Posted on 1997-10-17
2
346 Views
Last Modified: 2006-11-17
 How can i use more than 16 colors in graphics mode (using BC++ 4.5)?.Do i have to write my own '.bgi' file?
  I want my program to run fine for every video card (with enough video memory). Please tell me
0
Comment
Question by:blackdragon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
phillips earned 50 total points
ID: 1255909
In order to display more than 16 colors with BC++, you must use a SuperVGA BGI. BC++ 4.5 includes the "SVGA256.bgi" file;and I think that's what you need.

I think there isno need to make your program run with a simple VGA. Nowadays, almost everybody have a SVGA video card, so if you use this bgi, it will work in almost every computer.

You must remember one thing: You can set your own rgb palette, with your own colors; apart from the standar BGI's colors. Thisi is: you can send to the video card the palette you want (a 16 colors palette, a 256 colors palette, or a palette you have just read from a .gif file) using the 'outp()' function to the video port.

If you want I can send you an example in C of one of my programs.

I hope this will help

--phillips
0
 

Author Comment

by:blackdragon
ID: 1255910
 Please send me some of your source code to thanin@gear.kku.ac.th  
                              --Thank you--
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question