Click here to Skip to main content
15,909,332 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Adding button/control to an existing dialog Pin
«_Superman_»10-Feb-09 20:56
professional«_Superman_»10-Feb-09 20:56 
GeneralRe: Adding button/control to an existing dialog Pin
Identity Undisclosed10-Feb-09 21:27
Identity Undisclosed10-Feb-09 21:27 
AnswerRe: Adding button/control to an existing dialog Pin
SandipG 10-Feb-09 20:57
SandipG 10-Feb-09 20:57 
GeneralRe: Adding button/control to an existing dialog Pin
Identity Undisclosed10-Feb-09 21:25
Identity Undisclosed10-Feb-09 21:25 
AnswerRe: Adding button/control to an existing dialog Pin
shark_1710-Feb-09 21:32
shark_1710-Feb-09 21:32 
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 
Hi everyone,

I am novelty to Image Processing. Currently, I want to read the data of a monochrome BMP file into an 2D array using VC++ 2005. I read quite a number of articles about BMP file, but there's still a vague explanation concerning the monochrome one.

I know and understand on how to read its header and header information. However, when I read the data of it, the output is 205 for BLACK pixel which makes me very confusing. It should be 0 for Black pixel, right? In short, the followings are my questions:

1. How is data in monochrome BMP file stored?
2. Do I have to read it in RGB order or just one byte a time?
3. Do I have to manage the junk (useless) byte?

Thanks in advance.

Ing LengIeng
Software Developer

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

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.