Click here to Skip to main content
15,905,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Actually the error is
error C2440: '=' : cannot convert from 'double' to 'int *' 

and it is pretty explanatory: the right side of the assignment, i.e.
0.3*ucImgdata[iX] + 0.59*ucImgdata[iX+1] + 0.11*ucImgdata[iX+2]

is an expression that evaluates to a double, while the left side (the l-value), i.e.
ucImgdata1

is declared as int *.
Such assignment is simply a mistake and I cannot understand what you intend to do with such code.

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


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 
QuestionAbout Mouse Icon Pin
manish.patel20-Feb-08 19:58
manish.patel20-Feb-08 19:58 
GeneralAbout Mouse Icon Updated Pin
manish.patel20-Feb-08 20:10
manish.patel20-Feb-08 20:10 
GeneralRe: About Mouse Icon Updated Pin
_AnsHUMAN_ 20-Feb-08 21:36
_AnsHUMAN_ 20-Feb-08 21:36 
GeneralRe: About Mouse Icon Updated Pin
manish.patel20-Feb-08 21:49
manish.patel20-Feb-08 21:49 
QuestionRe: About Mouse Icon Updated Pin
Rajkumar R21-Feb-08 0:38
Rajkumar R21-Feb-08 0:38 
GeneralRe: About Mouse Icon Updated Pin
manish.patel21-Feb-08 1:08
manish.patel21-Feb-08 1:08 
GeneralRe: About Mouse Icon Updated Pin
Rajkumar R21-Feb-08 3:26
Rajkumar R21-Feb-08 3:26 
GeneralRe: About Mouse Icon Updated Pin
manish.patel21-Feb-08 1:25
manish.patel21-Feb-08 1:25 
General[Message Deleted] Pin
swarup20-Feb-08 19:52
swarup20-Feb-08 19:52 
GeneralRe: How to add a file to an application Pin
Rajkumar R20-Feb-08 20:04
Rajkumar R20-Feb-08 20:04 
GeneralRe: How to add a file to an application Pin
swarup20-Feb-08 20:08
swarup20-Feb-08 20:08 

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.