Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Adding button/control to an existing dialog Pin
Sarath C10-Feb-09 22:45
Sarath C10-Feb-09 22:45 
AnswerRe: Adding button/control to an existing dialog Pin
Stuart Dootson10-Feb-09 23:01
professionalStuart Dootson10-Feb-09 23:01 
QuestionReading data of a monochrome BMP file Pin
Member 211673610-Feb-09 20:08
Member 211673610-Feb-09 20:08 
AnswerRe: Reading data of a monochrome BMP file Pin
Code-o-mat10-Feb-09 21:49
Code-o-mat10-Feb-09 21:49 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673610-Feb-09 22:26
Member 211673610-Feb-09 22:26 
GeneralRe: Reading data of a monochrome BMP file Pin
Code-o-mat10-Feb-09 23:00
Code-o-mat10-Feb-09 23:00 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 4:33
Member 211673611-Feb-09 4:33 
AnswerRe: Reading data of a monochrome BMP file Pin
CPallini10-Feb-09 22:04
mveCPallini10-Feb-09 22:04 
From BITMAPINFOHEADER documentation [^], about biBitCount member equal to 1:

The bitmap is monochrome, and the bmiColors member of BITMAPINFO contains two entries. Each bit in the bitmap array represents a pixel. If the bit is clear, the pixel is displayed with the color of the first entry in the bmiColors table; if the bit is set, the pixel has the color of the second entry in the table.


Thus one byte of the bitmap array having value 205 represents eight adjacent pixels colors: 11001101 (1-second color of the color table, for instance black, 0-first entry of the color table, for instance white).
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673610-Feb-09 22:23
Member 211673610-Feb-09 22:23 
GeneralRe: Reading data of a monochrome BMP file Pin
CPallini10-Feb-09 22:59
mveCPallini10-Feb-09 22:59 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 4:35
Member 211673611-Feb-09 4:35 
GeneralRe: Reading data of a monochrome BMP file Pin
CPallini11-Feb-09 7:51
mveCPallini11-Feb-09 7:51 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 14:57
Member 211673611-Feb-09 14:57 
GeneralRe: Reading data of a monochrome BMP file Pin
CPallini11-Feb-09 22:06
mveCPallini11-Feb-09 22:06 
GeneralRe: Reading data of a monochrome BMP file Pin
Member 211673611-Feb-09 22:13
Member 211673611-Feb-09 22:13 
QuestionUsing CDialog::OnOK() Pin
Babu@codeproject10-Feb-09 18:51
Babu@codeproject10-Feb-09 18:51 
AnswerRe: Using CDialog::OnOK() Pin
Eytukan10-Feb-09 19:10
Eytukan10-Feb-09 19:10 
AnswerRe: Using CDialog::OnOK() Pin
SandipG 10-Feb-09 19:42
SandipG 10-Feb-09 19:42 
Question[Message Deleted] Pin
Purish Dwivedi10-Feb-09 17:39
Purish Dwivedi10-Feb-09 17:39 
AnswerRe: Sample multilingual application with full steps using vc++ in visual studio 2005 Pin
Sarath C10-Feb-09 18:51
Sarath C10-Feb-09 18:51 
AnswerREPOST Pin
_AnsHUMAN_ 10-Feb-09 19:32
_AnsHUMAN_ 10-Feb-09 19:32 
Answer2nd Repost.. Please Ignore. Pin
SandipG 10-Feb-09 19:49
SandipG 10-Feb-09 19:49 
General[Message Deleted] Pin
Purish Dwivedi10-Feb-09 21:54
Purish Dwivedi10-Feb-09 21:54 
RantPlease don't be rude Pin
CPallini10-Feb-09 22:26
mveCPallini10-Feb-09 22:26 
General[Message Deleted] Pin
Purish Dwivedi10-Feb-09 22:58
Purish Dwivedi10-Feb-09 22:58 

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.