Click here to Skip to main content
15,915,164 members
Home / Discussions / C#
   

C#

 
Questionrefer to control on aspx page from ascx control Pin
digsy_22-Feb-07 8:49
digsy_22-Feb-07 8:49 
AnswerRe: refer to control on aspx page from ascx control Pin
Abisodun22-Feb-07 9:41
Abisodun22-Feb-07 9:41 
Questionconverting 24bits image into 8 bit grayscale image Pin
haseeb_saeed22-Feb-07 8:22
haseeb_saeed22-Feb-07 8:22 
AnswerRe: converting 24bits image into 8 bit grayscale image Pin
Ed.Poore22-Feb-07 8:37
Ed.Poore22-Feb-07 8:37 
AnswerRe: converting 24bits image into 8 bit grayscale image Pin
Dan Neely22-Feb-07 8:55
Dan Neely22-Feb-07 8:55 
GeneralRe: converting 24bits image into 8 bit grayscale image Pin
haseeb_saeed22-Feb-07 23:09
haseeb_saeed22-Feb-07 23:09 
GeneralRe: converting 24bits image into 8 bit grayscale image Pin
Dan Neely23-Feb-07 2:10
Dan Neely23-Feb-07 2:10 
AnswerRe: converting 24bits image into 8 bit grayscale image Pin
Christian Graus22-Feb-07 13:42
protectorChristian Graus22-Feb-07 13:42 
What on earth is ptr3, a conversion to monochrome ?

The issue is, you are doing the right conversion, but for 8 bit, you need to put those colors into the palette, the value you're inserting into the bitmap is not a colour, but an index into the palette. Change the palette to go from 0,0,0 to 255,255,255, and then this code will work, as the paletter will map directly to the numbers you're passing in.



Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: converting 24bits image into 8 bit grayscale image Pin
haseeb_saeed22-Feb-07 23:01
haseeb_saeed22-Feb-07 23:01 
Questionconverting 24bits image into 8 bit grayscale image Pin
haseeb_saeed22-Feb-07 8:21
haseeb_saeed22-Feb-07 8:21 
QuestionAdding web service reference in Visual Studio Pin
Jaguas22-Feb-07 8:06
Jaguas22-Feb-07 8:06 
AnswerRe: Adding web service reference in Visual Studio Pin
Michael Sync22-Feb-07 16:21
Michael Sync22-Feb-07 16:21 
GeneralRe: Adding web service reference in Visual Studio Pin
mail57235222-Feb-07 23:45
mail57235222-Feb-07 23:45 
GeneralRe: Adding web service reference in Visual Studio Pin
Michael Sync23-Feb-07 20:13
Michael Sync23-Feb-07 20:13 
QuestionSending Email from Desktop App Pin
TheJudeDude22-Feb-07 7:57
TheJudeDude22-Feb-07 7:57 
AnswerRe: Sending Email from Desktop App Pin
Ed.Poore22-Feb-07 8:42
Ed.Poore22-Feb-07 8:42 
GeneralRe: Sending Email from Desktop App Pin
TheJudeDude22-Feb-07 8:51
TheJudeDude22-Feb-07 8:51 
GeneralRe: Sending Email from Desktop App Pin
Ed.Poore22-Feb-07 9:07
Ed.Poore22-Feb-07 9:07 
AnswerRe: Sending Email from Desktop App Pin
Dave Kreskowiak22-Feb-07 9:09
mveDave Kreskowiak22-Feb-07 9:09 
GeneralRe: Sending Email from Desktop App [modified] Pin
TheJudeDude22-Feb-07 9:23
TheJudeDude22-Feb-07 9:23 
QuestionReflection - how to retrieve XML comments Pin
T John22-Feb-07 7:47
T John22-Feb-07 7:47 
AnswerRe: Reflection - how to retrieve XML comments Pin
malharone22-Feb-07 8:11
malharone22-Feb-07 8:11 
AnswerRe: Reflection - how to retrieve XML comments Pin
Dave Kreskowiak22-Feb-07 9:07
mveDave Kreskowiak22-Feb-07 9:07 
AnswerRe: Reflection - how to retrieve XML comments Pin
Hesham Amin22-Feb-07 10:28
Hesham Amin22-Feb-07 10:28 
Questionhow to connect to multiple instance of database? Pin
sundar15622-Feb-07 7:41
sundar15622-Feb-07 7:41 

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.