delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/09/17:18:45

Xref: news2.mv.net comp.os.msdos.djgpp:4767
From: Jens Jedamzik <jedamzik AT eevmic DOT uni-paderborn DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: graphics display
Date: 9 Jun 1996 16:29:53 GMT
Organization: Universitaet Paderborn, Germany
Lines: 26
Message-ID: <4peu61$ftv@news.uni-paderborn.de>
NNTP-Posting-Host: eevxt1.uni-paderborn.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

yyong AT ee DOT ryerson DOT ca schreibt:
> hi, I use djgpp for my C compiler and I wonder if it's possible to 
> display pictures (any format) on the screen. I want to create a slide 
> show program. Is there a C command to display the pictures?
> Thank you.
> 
> Alan

There is no simple C command for displaying graphics.
The major problem in writing a display program is the large number of different
video adaptor types; so a lot of programming work is to be done in the identification 
of the correct VGA parameters.

A good set of sources to review is found in the public domain program called PICLAB.
It is found in the SimTel/msdos/graphics/  directory under
piclb193.zip (.EXEs)      and
plsrc193.zip (sources in C and ASM).
In the same directory, there are also some sources for decoding GIFs, PCXs e.a.
Unfortunately, PICLAB is written for 16-bit mode compilation and assembly,
using segmented memory. But the sources show, how to identify and manage many
different types of graphic adaptors, including VESA modes.

(If anybody knows a better solution suitable for DJGPP, please tell it here, 
because I am sharing Alan's problem!)

Jens

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019