Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Corrupted strings returning to VB ("M"e"s"s"e"d" "U"p"!"") Pin
AlexO11-Mar-03 4:04
AlexO11-Mar-03 4:04 
GeneralI/o Completion Problem Pin
Renjith Ramachandran11-Mar-03 3:22
Renjith Ramachandran11-Mar-03 3:22 
GeneralEditing treeview in win32 dialog closes dialog Pin
blagrang11-Mar-03 3:16
blagrang11-Mar-03 3:16 
GeneralBuild #'s, Version Tracking and such Pin
Like2Byte11-Mar-03 3:07
Like2Byte11-Mar-03 3:07 
GeneralRe: Build #'s, Version Tracking and such Pin
Rob Groves12-Mar-03 10:59
Rob Groves12-Mar-03 10:59 
GeneralCreating grayscale bitmap Pin
djordj11-Mar-03 3:06
djordj11-Mar-03 3:06 
GeneralRe: Creating grayscale bitmap Pin
Hesham Amin11-Mar-03 3:44
Hesham Amin11-Mar-03 3:44 
GeneralRe: Creating grayscale bitmap Pin
Mike Zinni11-Mar-03 4:29
Mike Zinni11-Mar-03 4:29 
8 bit bitmaps are set up so that each byte in the image array is an index into a color palette having 256 RGB entries for that image. Your best bet would be to set each entry in the image's palette to a grayscale value.

For example:
If pPalette was a pointer to the palette for one of your 8bpp split bitmaps, then:
pPalette[0] = {0, 0, 0};<br />
pPalette[1] = {1, 1, 1};<br />
pPalette[2] = {2, 2, 2};<br />
...<br />
pPalette[254] = {254, 254, 254};<br />
pPalette[255] = {255, 255, 255};


Hope that helps a little.




-Mike Zinni

"No sh*t it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
QuestionHow do u pass parameters to OnKillfocus... Pin
IrishSonic11-Mar-03 2:58
IrishSonic11-Mar-03 2:58 
AnswerRe: How do u pass parameters to OnKillfocus... Pin
Nicolas Bonamy11-Mar-03 3:01
Nicolas Bonamy11-Mar-03 3:01 
AnswerRe: How do u pass parameters to OnKillfocus... Pin
TomKat14-Mar-03 15:58
TomKat14-Mar-03 15:58 
QuestionAlternative to Sleep(0)? Pin
nay11-Mar-03 2:57
nay11-Mar-03 2:57 
AnswerRe: Alternative to Sleep(0)? Pin
Tim Smith11-Mar-03 4:28
Tim Smith11-Mar-03 4:28 
GeneralRe: Alternative to Sleep(0)? Pin
nay11-Mar-03 7:30
nay11-Mar-03 7:30 
GeneralRe: Alternative to Sleep(0)? Pin
Brian Shifrin11-Mar-03 7:45
Brian Shifrin11-Mar-03 7:45 
GeneralRe: Alternative to Sleep(0)? Pin
Tim Smith11-Mar-03 8:49
Tim Smith11-Mar-03 8:49 
GeneralControl Limits Pin
moobob11-Mar-03 2:44
moobob11-Mar-03 2:44 
GeneralRe: Control Limits Pin
AlexO11-Mar-03 2:54
AlexO11-Mar-03 2:54 
GeneralRe: Control Limits Pin
moobob11-Mar-03 3:23
moobob11-Mar-03 3:23 
GeneralRe: Control Limits Pin
TomKat14-Mar-03 16:00
TomKat14-Mar-03 16:00 
GeneralLocalization tool Pin
Nicolas Bonamy11-Mar-03 2:40
Nicolas Bonamy11-Mar-03 2:40 
GeneralRe: Localization tool Pin
AlexO11-Mar-03 3:03
AlexO11-Mar-03 3:03 
GeneralRe: Localization tool Pin
Nicolas Bonamy11-Mar-03 3:09
Nicolas Bonamy11-Mar-03 3:09 
QuestionHelp me about the file from network? Pin
dxhdxh11-Mar-03 2:36
dxhdxh11-Mar-03 2:36 
AnswerRe: Help me about the file from network? Pin
AlexO11-Mar-03 2:56
AlexO11-Mar-03 2:56 

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.