🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sci.image.processing
3 messages
3 total messages Started by Steve Bryant Thu, 01 Oct 1992 12:26
Turbo C Library Graphics Help
#628
Author: Steve Bryant
Date: Thu, 01 Oct 1992 12:26
9 lines
825 bytes
I am using Turbo C for some Image analysis. Unfortunately the 
graphics library that comes with Turbo C does not include a driver
for the 256 color mode. I am trying to display a bit map monochrome
image with 256 grey scale levels.

Does anyone know of a good inexpensive graphics library for Turbo C 
running under DOS 5.0 that will allow me to use my  super VGA card 
in the 256 color mode. The library has to be for the large memory 
model.
Re: Turbo C Library Graphics Help
#632
Author: Michael Cree
Date: Fri, 02 Oct 1992 01:44
32 lines
2413 bytes
Steve Bryant (bryant@neural.Kodak.COM) wrote:
: I am using Turbo C for some Image analysis. Unfortunately the 
: graphics library that comes with Turbo C does not include a driver
: for the 256 color mode. I am trying to display a bit map monochrome
: image with 256 grey scale levels.

Be wary, standard VGA does not do 256 grey scale levels. It has 256 colour
modes but only 64 grey scales since there are normally 6 bits per colour. If
you are one of those who do have more sophisticated vga cards capable of 24
bit colour then ignore my above comment.

: Does anyone know of a good inexpensive graphics library for Turbo C 
: running under DOS 5.0 that will allow me to use my  super VGA card 
: in the 256 color mode. The library has to be for the large memory 
: model.

If you can't locate a library, it is pretty easy to write a driver to drive
the vga modes. The easiest way is to call the BIOS video calls, though not
very computationally efficient, it is easy to implement. The other choice is
to hit the hardware yourself, but if you need extended vga modes then you
need to know the hardware you are running on which is nothing but a right
pain. I do have code for drawing to the vga screens but it's in modula-2 and
since I vowed never to programme an IBM AT (unless it was running unix) due
to the horrific system it is, I'm not about to translate it to C. However, if
would be any help I could email it to you.

-----------------------------------------------------------------------------
Michael Cree                              Gold there is
cree@elec.canterbury.ac.nz                 and rubies in abundance;
                                          But lips that speak knowledge
                                           are a rare jewel. (Prov 20:15)
------------------------------------------------------------------------------
Re: Turbo C Library Graphics Help
#634
Author: Hallvard Paulsen
Date: Fri, 02 Oct 1992 07:25
26 lines
1831 bytes
In article <1992Oct1.122617.10918@kodak.kodak.com>, bryant@neural.Kodak.COM (Steve Bryant) writes:
|> I am using Turbo C for some Image analysis. Unfortunately the 
|> graphics library that comes with Turbo C does not include a driver
|> for the 256 color mode. I am trying to display a bit map monochrome
|> image with 256 grey scale levels.
|> 
|> Does anyone know of a good inexpensive graphics library for Turbo C 
|> running under DOS 5.0 that will allow me to use my  super VGA card 
|> in the 256 color mode. The library has to be for the large memory 
|> model.

	There has been made SVGA BGI drivers for the Borland compilers.
You can find them at most MS-dos ftp sites. Look for a file called SVGABGI.ZIP
or something similar. (There is also a BGI driver for printers called something
like prntbgi.zip). Even though you won't be able to use  256 grascale I have
found out that it is very difficult to see more that 64 greaylevels anyway.

  \\___//
  |     |       Hallvard Paulsen, MSc
  |_____|       Research Engineer / Grad. Stud
  || o ||       Division of Machinery
  || \\||       NORWEGIAN MARINE TECHNOLOGY RESEARCH INSTITUTE
      \\        TEL : +47 (07)595522 
       o        FAX : +47 (07)595983
      //        EMAIL : hallvard.paulsen@imm.unit.no
     O     
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads