Article View: comp.os.msdos.programmer
Article #7948Re: HELP: HOW to load bmp in BC3.1?
From: Alexander J Russell
Date: Wed, 27 Mar 1996 01:42
Date: Wed, 27 Mar 1996 01:42
28 lines
1664 bytes
1664 bytes
In article <Pine.SOL.3.91.960325133225.26439A-100000@barney>, ialtsh01@barney says... > >Hi there. >I would appriciate if any could help me with following: >HOW to load bmp file of the screen size onto the screen in Borland C/C++ >3.1 and to be able to draw diff. objects on that image. ( I know how to >use graphics but dont know how to do it with picture as background) > >If you know how to do above with diff picture format would be fine too:) >Would appriciate info ASAP:) > >Thnx ^*_*^ >Igor Altshuler > It depends on the graphics mode, and the format of the pic to be displayed. Basicly you have to decode the BMP file into a format that is easily drawn. To display graphics over the BMP you just display the BMP first, then draw you graphics over top. To have animation, save the part of the screen under the graphics so you can restore it. I have code to decode PCX and LBM (dpaint) files for mode13 (320x200 256 colour mode) in C. Email me for more info. -- The AnArChIsT! Anarchy! Not Chaos! aka Alex Russell alexad3@iceonline.com
Technical Details
Message-ID:
<DowKrC.61H@iceonline.com>Path:
arc1-ca.pugleaf.net!news.iceonline.com!NewsposterReferences:
<Pine.SOL.3.91.960325133225.26439A-100000@barney>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.lang.c Path: arc1-ca.pugleaf.net!news.iceonline.com!Newsposter From: alexad3@icebox.iconline.com (Alexander J Russell) Subject: Re: HELP: HOW to load bmp in BC3.1? Content-Type: Text/Plain; charset=US-ASCII X-Newsreader: WinVN 0.99.7 Reply-To: alexad3@icebox.iceonlie.com Sender: Newsposter@iceonline.com (Newsposter) Nntp-Posting-Host: ns.iceonline.com Organization: ICE Online Internet news Message-ID: <DowKrC.61H@iceonline.com> References: <Pine.SOL.3.91.960325133225.26439A-100000@barney> Mime-Version: 1.0 Date: Wed, 27 Mar 1996 01:42:47 GMT