TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALBERTO MONTEIRO
from: KURT KUZBA
date: 1997-11-28 01:35:00
subject: Save Bitmap in M$C

AM>   I would like to know if there is any function (or
AM>   whatever) that saves a bitmap to a file.
   There is the Cbitmap::GetBitmapBits() which will send the
   bits of the bitmap to a buffer. I would imagine that you
   might then save the contents of the buffer easily enough.
   Check your VC++ Online Help.
   The bitmap data itself may be private. What you probably
   want to do is save the entire bitmap structure.
   That means you will likely want to declare a structure,
   and then use the CBitmap member functions to read all the
   parameter data and plug it into your structure, and then
   read the bitmap itself into the structure, and then save
   the entire structure.
   As you can probably tell, I haven't actually attempted this
   myself. :)
   It may actually be as simple as writing the class itself
   to disk, since the code elements will not be included
   in the data segment, and then reloading it using the
   CBitmap::LoadBitmap() function.
   One of these two methods, and possibly both, should work.
> ] I'm not materialistic. I'm just Object Oriented.............
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)

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™.