Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Command ID's - displaying status bar test and tooltips etc Pin
24-Oct-01 6:42
suss24-Oct-01 6:42 
GeneralRe: Command ID's - displaying status bar test and tooltips etc Pin
Tomasz Sowinski24-Oct-01 7:01
Tomasz Sowinski24-Oct-01 7:01 
Generalnon resizable CFormView Pin
Aviv Halperin24-Oct-01 4:29
Aviv Halperin24-Oct-01 4:29 
GeneralRe: non resizable CFormView Pin
#realJSOP24-Oct-01 5:13
professional#realJSOP24-Oct-01 5:13 
GeneralRe: non resizable CFormView Pin
Paolo Messina24-Oct-01 8:26
professionalPaolo Messina24-Oct-01 8:26 
GeneralRe: non resizable CFormView Pin
#realJSOP24-Oct-01 8:45
professional#realJSOP24-Oct-01 8:45 
GeneralRe: non resizable CFormView Pin
Paolo Messina24-Oct-01 9:29
professionalPaolo Messina24-Oct-01 9:29 
GeneralRGB (for Christian) Pin
24-Oct-01 3:42
suss24-Oct-01 3:42 
Christian, your last message was
>>The thing you have to consider is, what do you want to achieve ? The way
>>you're writing the file, you're getting an 8 bit greyscale image, if you
>>put this info into an 8 bit bitmap with a palette that went evenly from
>>0,0,0 to 255,255,255, it would work. You're only writing out one colour
>>value as far as I can see, and you're now correctly calculating the grey
>>value. Therefore making your bitmap 8 or 16 bit internally will only result
>>in messy calculations to get to the same point you're reaching now. Please
>>correct me, but I believe you're writing out one unsigned char per colour,
>>although you're making the variable an unsigned long, it will still be
>>between 0 and 255, yes ?

Yes, it still between 0...255.

And more, i compared it for 24 and 32 bpp with using GetPixel function
BYTE grayValue = (BYTE)(int)((GetRValue(clr) + GetGValue(clr) + GetBValue(clr)) / 3),
and it was the same.

But for 8 bitmap, then i using GetPixel it was like
125 125 125 (Red Green Blue)
and for my code it was
31 31 31
Why? I don't know
Yes, i need grayValue for every pixel
But i don't neen GetPixel(), because it work with handle (hDC, DC and other),
i need information only from bitmap (avi frame->LPBITMAPINFOHEADER)

But i haven't ideas how to wrote simple code for 8 and 16 bpp
GeneralRe: RGB (for Christian) Pin
Christian Graus24-Oct-01 10:33
protectorChristian Graus24-Oct-01 10:33 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 10:59
suss24-Oct-01 10:59 
GeneralRe: RGB (for Christian) Pin
24-Oct-01 11:01
suss24-Oct-01 11:01 
GeneralMenu in a tree control Pin
24-Oct-01 2:55
suss24-Oct-01 2:55 
GeneralRe: Menu in a tree control Pin
Tomasz Sowinski24-Oct-01 3:29
Tomasz Sowinski24-Oct-01 3:29 
Generalabout LoadLibrary Pin
Maer72724-Oct-01 2:31
Maer72724-Oct-01 2:31 
GeneralRe: about LoadLibrary Pin
Tomasz Sowinski24-Oct-01 3:40
Tomasz Sowinski24-Oct-01 3:40 
Generala simple problem about Dll Pin
Maer72724-Oct-01 2:27
Maer72724-Oct-01 2:27 
GeneralRe: a simple problem about Dll Pin
Steen Krogsgaard24-Oct-01 4:36
Steen Krogsgaard24-Oct-01 4:36 
Generaljust a test. don't bother.... Pin
Gilbert Jeiziner24-Oct-01 2:02
Gilbert Jeiziner24-Oct-01 2:02 
GeneralWhy do not use SetTimer() in CMyView:CListView Pin
24-Oct-01 0:42
suss24-Oct-01 0:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Masaaki Onishi24-Oct-01 4:31
Masaaki Onishi24-Oct-01 4:31 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Steen Krogsgaard24-Oct-01 4:42
Steen Krogsgaard24-Oct-01 4:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Tomasz Sowinski24-Oct-01 6:26
Tomasz Sowinski24-Oct-01 6:26 
QuestionMul64 function, how to include? Pin
24-Oct-01 0:37
suss24-Oct-01 0:37 
AnswerRe: Mul64 function, how to include? Pin
Tomasz Sowinski24-Oct-01 0:42
Tomasz Sowinski24-Oct-01 0:42 
GeneralRe: Mul64 function, how to include? Pin
24-Oct-01 23:22
suss24-Oct-01 23:22 

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.