Tags:
microsoft, gdi, c++
Hi,
I have a graphic application the draw images into off-screen buffer. 1000 times in a second the buffer pixels should be captured to memory. ( I need to pass the off-screen pixels to another application that compress the frame.) I have a code sample that uses CreateDIBSection and pass pBits. This way pBits provides me direct access to the pixels.
What is the most efficient way to do it?
hDesktopCompatibleDC=CreateCompatibleDC(hDesktopDC);
hDesktopCompatibleBitmap=CreateDIBSection(hDesktopDC,&bmpInfo,DIB_RGB_COLORS,&pBits,NULL,0);
if(hDesktopCompatibleDC==NULL || hDesktopCompatibleBitmap == NULL)
| Top Expert: |
Merete |
| Expert Since: |
12/18/2002 |
| Accepted Solutions: |
4061 |
| Computer Expertise: |
Advanced |
Merete has been an Expert for 6 years, during which she has posted 21197 comments
and answered 4061 questions. Merete is just one of 172 experts in the Multimedia Programming Zone.
20081119-EE-VQP-47 - Hierarchy / EE_QW_2_20070628