Click here to Skip to main content
15,876,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionErase text in transparent window Pin
gcorrea11-May-09 13:10
gcorrea11-May-09 13:10 
AnswerRe: Erase text in transparent window Pin
bulg11-May-09 14:07
bulg11-May-09 14:07 
GeneralRe: Erase text in transparent window Pin
Taran911-May-09 18:42
Taran911-May-09 18:42 
GeneralRe: Erase text in transparent window Pin
gcorrea20-May-09 7:27
gcorrea20-May-09 7:27 
QuestionDisplaying an image from a Firewire Camera in MFC Pin
cheekitwong11-May-09 12:11
cheekitwong11-May-09 12:11 
AnswerRe: Displaying an image from a Firewire Camera in MFC Pin
Jonathan Davies11-May-09 12:45
Jonathan Davies11-May-09 12:45 
QuestionRe: Displaying an image from a Firewire Camera in MFC Pin
cheekitwong12-May-09 11:03
cheekitwong12-May-09 11:03 
AnswerRe: Displaying an image from a Firewire Camera in MFC Pin
Jonathan Davies12-May-09 23:21
Jonathan Davies12-May-09 23:21 
Hi,
I used the following comment in one of my programs:
BITMAPINFO *m_pBitmapInfo;    // A DIB (Device Independant Bitmap) consists of two distinct
			      //parts: a BITMAPINFO structure describing the dimensions and 
                              // colors of the bitmap, and an array of bytes defining the 
                              // pixels of the bitmap

So say you have a certain type of camera, once you've set it up etc, the dimensions, the way the colours are defined, whether the image is in top-down or bottom-up format, black/white or colour, all this sort of stuff is likely to stay the same for each frame you receive from your camera.

You need this sort of information about the picture plus the actual data/bytes that make up the image.

My approach (but there may be others) sets up exactly what you would have if you'd loaded a .bmp file from disc with all the information but then combines it with the actual image data feom the camera to produce a complete bitmap or CBitmap object in MFC.

You could have a look at how the BITMAPINFO and BITMAPINFOHEADER structures are made up which might help.
AnswerRe: Displaying an image from a Firewire Camera in MFC Pin
Jonathan Davies13-May-09 1:49
Jonathan Davies13-May-09 1:49 
Questionwrite code (vc++) in file.txt Pin
anassamar11-May-09 9:25
anassamar11-May-09 9:25 
AnswerRe: write code (vc++) in file.txt Pin
David Crow11-May-09 9:30
David Crow11-May-09 9:30 
GeneralRe: write code (vc++) in file.txt Pin
CPallini11-May-09 11:26
mveCPallini11-May-09 11:26 
GeneralRe: write code (vc++) in file.txt Pin
Cedric Moonen11-May-09 20:43
Cedric Moonen11-May-09 20:43 
AnswerRe: write code (vc++) in file.txt Pin
bulg11-May-09 12:02
bulg11-May-09 12:02 
AnswerRe: write code (vc++) in file.txt Pin
Cedric Moonen11-May-09 20:48
Cedric Moonen11-May-09 20:48 
AnswerRe: write code (vc++) in file.txt Pin
huangnachuan11-May-09 23:43
huangnachuan11-May-09 23:43 
Questionchanging text color and tooltip of texts in a CListBox control Pin
AprNgp11-May-09 9:11
AprNgp11-May-09 9:11 
AnswerRe: changing text color and tooltip of texts in a CListBox control Pin
David Crow11-May-09 9:16
David Crow11-May-09 9:16 
QuestionKeeping row selected Pin
FISH78611-May-09 9:06
FISH78611-May-09 9:06 
AnswerRe: Keeping row selected Pin
David Crow11-May-09 9:21
David Crow11-May-09 9:21 
GeneralRe: Keeping row selected Pin
FISH78611-May-09 9:26
FISH78611-May-09 9:26 
GeneralRe: Keeping row selected Pin
David Crow11-May-09 9:28
David Crow11-May-09 9:28 
GeneralRe: Keeping row selected Pin
FISH78611-May-09 9:37
FISH78611-May-09 9:37 
GeneralRe: Keeping row selected Pin
David Crow11-May-09 9:58
David Crow11-May-09 9:58 
GeneralRe: Keeping row selected Pin
FISH78611-May-09 10:22
FISH78611-May-09 10:22 

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.