Solved

Dos Programming

Posted on 1997-10-17
2
341 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Directory does exist 19 144
Problem to ASCII 1 166
sameEnds challenge 3 135
change colour of repeater control in asp.net c# 7 73
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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 and use structures in the C programming language.
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now