Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c libraries needed to deal with bitmaps Pin
Calin Negru14-Mar-20 8:18
Calin Negru14-Mar-20 8:18 
GeneralRe: c libraries needed to deal with bitmaps Pin
phil.o14-Mar-20 8:37
professionalphil.o14-Mar-20 8:37 
GeneralRe: c libraries needed to deal with bitmaps Pin
Richard MacCutchan14-Mar-20 9:27
mveRichard MacCutchan14-Mar-20 9:27 
GeneralRe: c libraries needed to deal with bitmaps Pin
phil.o14-Mar-20 9:34
professionalphil.o14-Mar-20 9:34 
GeneralRe: c libraries needed to deal with bitmaps Pin
Richard MacCutchan14-Mar-20 21:58
mveRichard MacCutchan14-Mar-20 21:58 
GeneralRe: c libraries needed to deal with bitmaps Pin
Calin Negru12-Mar-20 0:35
Calin Negru12-Mar-20 0:35 
GeneralRe: c libraries needed to deal with bitmaps Pin
Victor Nijegorodov11-Mar-20 22:45
Victor Nijegorodov11-Mar-20 22:45 
GeneralRe: c libraries needed to deal with bitmaps Pin
Calin Negru12-Mar-20 0:43
Calin Negru12-Mar-20 0:43 
AnswerRe: c libraries needed to deal with bitmaps Pin
leon de boer12-Mar-20 5:31
leon de boer12-Mar-20 5:31 
GeneralRe: c libraries needed to deal with bitmaps Pin
Victor Nijegorodov12-Mar-20 8:39
Victor Nijegorodov12-Mar-20 8:39 
GeneralRe: c libraries needed to deal with bitmaps Pin
leon de boer12-Mar-20 13:19
leon de boer12-Mar-20 13:19 
QuestionWhat`s a palette in the parsing a bitmap context Pin
Calin Negru10-Mar-20 5:00
Calin Negru10-Mar-20 5:00 
AnswerRe: What`s a palette in the parsing a bitmap context Pin
phil.o10-Mar-20 5:16
professionalphil.o10-Mar-20 5:16 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
Calin Negru10-Mar-20 6:34
Calin Negru10-Mar-20 6:34 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
phil.o10-Mar-20 7:05
professionalphil.o10-Mar-20 7:05 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
harold aptroot10-Mar-20 16:31
harold aptroot10-Mar-20 16:31 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
phil.o10-Mar-20 19:27
professionalphil.o10-Mar-20 19:27 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
Calin Negru10-Mar-20 21:06
Calin Negru10-Mar-20 21:06 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
phil.o10-Mar-20 21:11
professionalphil.o10-Mar-20 21:11 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
Calin Negru10-Mar-20 21:30
Calin Negru10-Mar-20 21:30 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
phil.o10-Mar-20 21:46
professionalphil.o10-Mar-20 21:46 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
Calin Negru11-Mar-20 7:32
Calin Negru11-Mar-20 7:32 
GeneralRe: What`s a palette in the parsing a bitmap context Pin
leon de boer12-Mar-20 5:15
leon de boer12-Mar-20 5:15 
It is rare but even 24bit and 32bit bitmaps can have palettes, you do it if you want something like millions of shades of blue for example when printing an ocean scene.

If you look at the structure of the BitmapFileInfo header .. look at the second last entry that is how you know how many palette colours there are ... the last entry tells you how many are important.

bitmapinfoheader[^]

It is spelled out very clearly ...
If biClrUsed is zero, the array contains the maximum number of colors for the given bitdepth

You assume a 24bit or 32bit bitmap have no palette at your own risk.
In vino veritas

QuestionHaving issues with the cin.getline() function in C++ Pin
Member 147670008-Mar-20 14:29
Member 147670008-Mar-20 14:29 
AnswerRe: Having issues with the cin.getline() function in C++ Pin
k50548-Mar-20 15:37
mvek50548-Mar-20 15:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.