Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay9-Jul-06 11:40
Justin Tay9-Jul-06 11:40 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7910-Jul-06 21:43
im7910-Jul-06 21:43 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay10-Jul-06 22:55
Justin Tay10-Jul-06 22:55 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7910-Jul-06 23:12
im7910-Jul-06 23:12 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay10-Jul-06 23:37
Justin Tay10-Jul-06 23:37 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7911-Jul-06 1:16
im7911-Jul-06 1:16 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7930-Mar-08 13:06
im7930-Mar-08 13:06 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay1-Apr-08 4:09
Justin Tay1-Apr-08 4:09 
Hi,

RGBQUAD *pColors = pbmi->bmiColors;
for(int i = 0; i < 256; i++)
{
    pColors->rgbBlue = i;
    pColors->rgbGreen = i;
    pColors->rgbRed = i;
    pColors->rgbReserved = 0;
    pColors++;
}


The code snippet above is setting the color table. In your previous question, you wanted it grayscale so the color table so I set it up as such. If you want it to be color you need to setup the appropriate color table that your 8-bit data maps to.

Regards,
Justin Tay
QuestionWhat is wrong with this class - C2248 error Pin
charlieg7-Jul-06 3:24
charlieg7-Jul-06 3:24 
AnswerRe: What is wrong with this class - C2248 error Pin
Taka Muraoka7-Jul-06 3:29
Taka Muraoka7-Jul-06 3:29 
GeneralRe: What is wrong with this class - C2248 error Pin
charlieg7-Jul-06 3:39
charlieg7-Jul-06 3:39 
AnswerRe: What is wrong with this class - C2248 error Pin
Chris Losinger7-Jul-06 3:32
professionalChris Losinger7-Jul-06 3:32 
Questionusing C in VC express Pin
giddy_guitarist7-Jul-06 3:23
giddy_guitarist7-Jul-06 3:23 
AnswerRe: using C in VC express Pin
Chris Losinger7-Jul-06 3:27
professionalChris Losinger7-Jul-06 3:27 
AnswerRe: using C in VC express Pin
Zac Howland7-Jul-06 3:52
Zac Howland7-Jul-06 3:52 
GeneralRe: using C in VC express Pin
giddy_guitarist31-Mar-07 5:23
giddy_guitarist31-Mar-07 5:23 
QuestionStatic method, non-static variable Pin
Daniel Kanev7-Jul-06 2:45
Daniel Kanev7-Jul-06 2:45 
AnswerRe: Static method, non-static variable Pin
RChin7-Jul-06 3:11
RChin7-Jul-06 3:11 
AnswerRe: Static method, non-static variable Pin
Zac Howland7-Jul-06 4:01
Zac Howland7-Jul-06 4:01 
Questionoutlook Pin
pathakr7-Jul-06 2:44
pathakr7-Jul-06 2:44 
AnswerRe: outlook Pin
David Crow7-Jul-06 2:46
David Crow7-Jul-06 2:46 
Questionall urls Pin
yang__lee7-Jul-06 2:22
yang__lee7-Jul-06 2:22 
AnswerRe: all urls Pin
David Crow7-Jul-06 2:43
David Crow7-Jul-06 2:43 
AnswerRe: all urls Pin
Hamid_RT7-Jul-06 2:55
Hamid_RT7-Jul-06 2:55 
Questionto make a phone Pin
yogendra kaushik7-Jul-06 2:19
yogendra kaushik7-Jul-06 2:19 

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.