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

C / C++ / MFC

 
GeneralRe: About polymorphism.. [modified] Pin
CPallini20-Feb-08 23:47
mveCPallini20-Feb-08 23:47 
GeneralRe: About polymorphism.. Pin
Rajkumar R21-Feb-08 0:03
Rajkumar R21-Feb-08 0:03 
GeneralRe: About polymorphism.. Pin
rowdy_vc++21-Feb-08 0:47
rowdy_vc++21-Feb-08 0:47 
GeneralRe: About polymorphism.. Pin
Rajkumar R21-Feb-08 1:02
Rajkumar R21-Feb-08 1:02 
GeneralRe: About polymorphism.. Pin
David Crow21-Feb-08 4:03
David Crow21-Feb-08 4:03 
Questionconvert color image to grayscale image ? Pin
gentleguy20-Feb-08 21:29
gentleguy20-Feb-08 21:29 
AnswerRe: convert color image to grayscale image ? Pin
Iain Clarke, Warrior Programmer20-Feb-08 22:06
Iain Clarke, Warrior Programmer20-Feb-08 22:06 
AnswerRe: convert color image to grayscale image ? Pin
CPallini20-Feb-08 22:16
mveCPallini20-Feb-08 22:16 
Can't you simply average the color components, i.e.
COLORREF color, gray;
//...
BYTE avg = (GetRValue(color) + GetGValue(color) + GetBValue(color))/3;
gray = RGB(avg, avg, avg);

?

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


GeneralRe: convert color image to grayscale image ? Pin
Rajkumar R20-Feb-08 22:55
Rajkumar R20-Feb-08 22:55 
GeneralRe: convert color image to grayscale image ? Pin
CPallini20-Feb-08 23:22
mveCPallini20-Feb-08 23:22 
GeneralRe: convert color image to grayscale image ? [modified] Pin
Rajkumar R20-Feb-08 23:33
Rajkumar R20-Feb-08 23:33 
GeneralRe: convert color image to grayscale image ? Pin
CPallini21-Feb-08 0:02
mveCPallini21-Feb-08 0:02 
GeneralRe: convert color image to grayscale image ? Pin
Rajkumar R21-Feb-08 0:14
Rajkumar R21-Feb-08 0:14 
GeneralRe: convert color image to grayscale image ? Pin
gentleguy21-Feb-08 0:32
gentleguy21-Feb-08 0:32 
GeneralRe: convert color image to grayscale image ? Pin
Rajkumar R21-Feb-08 1:38
Rajkumar R21-Feb-08 1:38 
AnswerRe: convert color image to grayscale image ? Pin
swarup21-Feb-08 1:06
swarup21-Feb-08 1:06 
GeneralRe: convert color image to grayscale image ? Pin
gentleguy21-Feb-08 2:10
gentleguy21-Feb-08 2:10 
Questioncan't convert from int to int *? Pin
gentleguy20-Feb-08 21:14
gentleguy20-Feb-08 21:14 
AnswerRe: can't convert from double to double? Pin
CPallini20-Feb-08 21:30
mveCPallini20-Feb-08 21:30 
QuestionHow to change drop down list Height of a ComboBox Pin
poda20-Feb-08 21:00
poda20-Feb-08 21:00 
AnswerRe: How to change drop down list Height of a ComboBox Pin
Rajkumar R20-Feb-08 22:14
Rajkumar R20-Feb-08 22:14 
AnswerRe: How to change drop down list Height of a ComboBox Pin
Iain Clarke, Warrior Programmer20-Feb-08 22:32
Iain Clarke, Warrior Programmer20-Feb-08 22:32 
AnswerRe: How to change drop down list Height of a ComboBox Pin
David Crow21-Feb-08 4:11
David Crow21-Feb-08 4:11 
AnswerRe: How to change drop down list Height of a ComboBox Pin
poda21-Feb-08 18:41
poda21-Feb-08 18:41 
GeneralRe: How to change drop down list Height of a ComboBox Pin
Rajkumar R24-Feb-08 2:46
Rajkumar R24-Feb-08 2:46 

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.