[comp.os.msdos.programmer] Title Screen - How?

davenport@iccgcc.decnet.ab.com (04/06/91)

OK, silly question time.

How do you create a title screen from a graphics picture (any file format)?

A compatriot has a .TIF file, converted to .PCX, and wants to display it at 
the beginning of his program - either for a specified period of time or as 
a backdrop to some intro information.  How should he store the picture and 
display it?  Where is there C code that will display a graphics file under
your programs control?  Is it simple enough to RTFM? which FM?  Would some
product like PCX Toolkit work? (I'm not familiar with it).

Just mail me any info you have and I'll summarize what I get in a post to
the net for the benefit of all those out there who don't think this is a 
silly question.  (There are some of you out there, right?)


Rob



-- 
-----                                                                     -----
Rob Davenport                   davenport%iccgcc.decnet.ab.com@abvax.icd.ab.com 

Allen-Bradley Co.               "Oh mama, mama look there,
Highland Hts. OH                 the children are playin' in the street again."
(216) 646-3602 or 475-3343         - "Washington Bullets" The Clash, Sandinista

-----  In Memoriam: Scott Robertson Yoder Davenport,  10/12/88    7/3/90  -----

frank@cavebbs.gen.nz (Frank van der Hulst) (04/08/91)

In article <4137.27fc6215@iccgcc.decnet.ab.com> davenport@iccgcc.decnet.ab.com writes:
>How do you create a title screen from a graphics picture (any file format)?

Here's what I did... it takes several steps, but it isn't complex:

I had a MACPAINT picture I wanted to include in a program, so I found a
utility to convert a MACPAINT to a .COM which displayed it, then waited for a
key before exitting. I disassembled the display program, and removed the bit
which waited for a key and cleared the screen. Next I wrote a Turbo-Pascal
program to simply do a getimage on the screen to RAM, then dump it to a disk
file... these two programs (PICTURE.COM and GET_PIC.EXE) were then run
consecutively from a batch file -- that got me the screen image in a binary
file. Next step (this is optional, since you could simply read the file back
into an array in TP or TC, then use putimage to display it) was to convert the
binary to an object via TP's BINOBJ utility, and then link it into my program
to display via putimage.

It's not exactly what you wanted, but I hope it gives you an idea.


-- 

Take a walk on the wild side, and I don't mean the Milford Track.
Kayaking: The art of appearing to want to go where your boat is taking you.

paulg@bhpmrl.oz.au (Paul Gallagher) (04/17/91)

I just posted an answer to a similar question in comp.lang.c
(I think! maybe it was comp.lang.pascal)

Paul Gallagher