?
Solved

Saving of 16/24-bit bitmap

Posted on 1998-09-12
1
Medium Priority
?
478 Views
Last Modified: 2013-11-20
I do not get managed to save a 16/24-bit bitmap. There are no problems with 8-bit images but despite of all documentation I have read I was not able to save a 16/24-bit bitmap. I already know the Visual C++ article concerning this topic but somehow it does not work. Can anyone simply send a working sample of how to save a 16 or 24-bit bitmap ? I would be very thankful since I have tried to solve this problem for almost two weeks now.
0
Comment
Question by:ClausLeonhardt
1 Comment
 
LVL 3

Accepted Solution

by:
brosenb0 earned 280 total points
ID: 1322094
What you need to do is create a Device Independent Bitmap (DIB) from your Bitmap and then save this to a file.  This way custom palette information is saved with the bitmap image.  Examples of how to create and save a DIB may be found at www.codeguru.com/bitmap.

In particular look at the the article by Jorge Lodos about the Encapsulated DIB API.  This class contains all the code necessary to load and save DIBS, create the DIB's palette and paint the DIB.  It can easily be extended to allow the DIB to be loaded from a resource contained within the application.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question