delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/11/23:32:25

From: David Lipman <davidlipman AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: graphics question
Message-ID: <nruaitgdch26oudmdtd5vdn28c0ct7mabu@4ax.com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Lines: 25
Date: Tue, 12 Jun 2001 02:28:16 GMT
NNTP-Posting-Host: 158.252.36.42
X-Complaints-To: abuse AT earthlink DOT net
X-Trace: newsread1.prod.itd.earthlink.net 992312896 158.252.36.42 (Mon, 11 Jun 2001 19:28:16 PDT)
NNTP-Posting-Date: Mon, 11 Jun 2001 19:28:16 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net
X-Received-Date: Mon, 11 Jun 2001 19:26:15 PDT (newsmaster1.prod.itd.earthlink.net)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.  I'm an entry-level, beginner programmer.  I've been trying to
teach myself the basics of graphics and game programming by reading
tutorials and source code that I've found at various places throughout
the internet.  In some of the example source code I've been looking
over latley I've seen examples of programs that 'read in' a picture by
looping through numbers (data) in an array.  Basically there will be
an array at the top of the code something like: 

const byte BIT[200] = {0, 0, 2, 3, 4, 6, 0, 0, ... } and so on up to
199 elements (0-199).  

Then there will be a loop later in the code that reads these numbers
from the array BIT and puts them to the screen (using a Putpixel() or
something similar).  Anyway, my question is this: from what program do
these people get these numbers stored in the original arrays from?  In
other words, could anyone recommend any shareware or freeware programs
on the net that convert a graphic picture to a series of numbers
(data) that can be stored in (and read back from) an array.   Just for
general information, I'm using C, C++, and some assembly language.
Also programs like Turbo C++, MASM, TASM, DJGPP, and Allegro. My OS is
Windows95 but I'm mostly writing code for use on DOS.   Any help or
suggestions with my 'graphic-conversion' problem would be greatly
appreciated. 

Thaks much.

- Raw text -


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