Board index » cppbuilder » Question on saving multiple Bitmaps to a single file

Question on saving multiple Bitmaps to a single file

I am writing a 2-part application where one user creates a
file containing multiple bitmaps.  These will be scanned
photos, and so the individual bitmaps can be quite big
(24-bit color).  After creating the "show", the first user
passes it along to the "customers".

The other users (2nd part of program) view these bitmaps
using the program and the data for the custom built "show".

There may be quite a few bitmaps, say on the order of 40.
Rather than dragging along 40 different files, I would prefer
to have one real big file (yes, I know it would need a Zip
disk).

How do I do this?

By the way, I have another post, named "Auto-sizing a
Bitmap to fit a Window".  If you can please take a look
at that one too, and give whatever help you can, I would
really appreciate it.

Thanks.

-Kelce Wilson
The views in this post are entirely my own and do not
reflect the position of the U.S. Air Force.

 

Re:Question on saving multiple Bitmaps to a single file


First, read my new post: "Question on Bitmap Conversions"

Quote
Kelce Wilson wrote:
> I am writing a 2-part application where one user creates a
> file containing multiple bitmaps.  These will be scanned
> photos, and so the individual bitmaps can be quite big
> (24-bit color).  After creating the "show", the first user
> passes it along to the "customers".

> The other users (2nd part of program) view these bitmaps
> using the program and the data for the custom built "show".

Instead, I will have 16-bit color bitmaps that are all the same
size, converted with the program posted in: "Question on Bitmap
Conversions"

Quote
> There may be quite a few bitmaps, say on the order of 40.
> Rather than dragging along 40 different files, I would prefer
> to have one real big file (yes, I know it would need a Zip
> disk).

I guess I should use TImageList, but could someone showme how?  Help
doesn't give any examples of usage syntax.

I need examples showing how to:

1)
while (get another bitmap)
NewBitmap=LoadFromFile(bitmapfilename.c_str());
select index position N
assign NewBitmap to index postion N in TImageList
get another bitmap or quit?

2)
remove bitmap at index position N from TImageList

3)
save TImageList

4)
load TImageList
while(display another bitmap)
select index position N
display bitmap assigned to index position N in TImageList
display another bitmap or quit?

I can do the loops, index selection criteria, ..., I just need the
TImageList syntax for use in each of the above scenarios.

-Kelce Wilson
The views in this post are entirely my own and do not
reflect the position of the U.S. Air Force.

Other Threads