TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: NOAH PORCH
from: JONATHAN DE BOYNE POLLARD
date: 1997-11-30 21:28:00
subject: Bitmaps

 NP> Ok Does anybody know how to put bitmaps in a program?
 NP> I'm just a beginner at C++ [...]
... and you haven't yet mastered the art of clearly asking what you want to 
know.  What do you mean by "put bitmaps in a program" ?
If you mean "make a bitmap part of my executable", then read your compiler 
documentation's information about resources and how you bind them to an 
executable.
If you mean "read a bitmap file", then read your system's API documentation 
for the format of a bitmap file (in OS/2, this information is in the PM 
Reference, in the chapter entitled "Related information", in the section 
"Bitmap file format") and use the file I/O library classes.
If you mean "display a bitmap on the screen", then read your system's API 
documentation on how to create and manipulate bitmaps (in OS/2, start with 
the GpiCreateBitmap and GpiLoadBitmap functions, again documented in the PM 
Reference, and follow the links to the related functions and structures).
 ¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.