www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/08/18:46:11

Message-Id: <199609082221.SAA05603@delorie.com>
Comments: Authenticated sender is <lb8412 AT mailhost DOT dnet DOT co DOT uk>
From: "Lee Braiden" <lee_b AT celestia DOT dnet DOT co DOT uk>
To: djgpp AT delorie DOT com
Date: Sun, 8 Sep 1996 23:20:22 +0
MIME-Version: 1.0
Subject: Re: HELP! Graphix in TEXT MODE
Reply-to: Lee_B AT Celestia DOT dnet DOT co DOT uk

> Hello all,
> 	I'm also a novice to programming with C, and especially in DOS.
> How would one add pixel graphics to a text mode program? I have a nice
> security program I've been fooling around with, and I'd like to add a
> small graphic toward the beginning. Can anyone help me out here? Maybe
> some snippits of code or a tutorial or whatever.. Thanks in advance.
> 
> -Joe.
> (tainted AT wco DOT com)
> 

You can't really do this - the whole point of text mode is that it 
can only draw text (no graphics).  The only work-arounds that I can 
think of are to :

  a)  Go into graphics mode to display your startup screen, and 
       revert to text mode for your program.

  b) Create your own character set, where certain characters make up 
       the required image when you put them onscreen in the correct 
       order (like in a tile-based game).

  c) "Fake" the graphics by combining letters so they look like an 
       image.  (This is usually called ASCII art, since the character 
       set that the component characters are chosen from is the 
       standard one - ASCII.

  d)  Do what most people do - use a Windows-style GUI, like SWORD to
       handle graphics, text, buttons, dialogs, and everything else 
       that a program normally uses.
--

"...We're fighting a war, but we don't know what for,
'cause we want the same thing..."
"...We dream the same dreams, we want the same things..."
- (we want) The same thing,  Belinda Carlisle.

EMail:   Lee_B AT Celestia DOT dnet DOT co DOT uk
Website: http://www.niweb.com/dnet/dnetxwcs

- Raw text -


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