Efficient way to access off-screen buffer memory

Posted on 2008-11-11
Medium Priority
Last Modified: 2013-12-26
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?

if(hDesktopCompatibleDC==NULL || hDesktopCompatibleBitmap == NULL)
Question by:razn
1 Comment
LVL 11

Accepted Solution

jgordos earned 1000 total points
ID: 22939904
Actually, memory DCs (that's what you're creating when you call createCompatibleDC) are pretty fast.

You don't say which version of windows you're running on, or your targit screen resolution, type of machine, etc, so it's hard to suggest alternatives, but, yeah, that's a pretty good way to go.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
On Beyond Tools A conversation I recently had with the DevOps manager of a major online retailer really made me think about DevOps monitoring tools (https://www.onpage.com/devops-incident-management-tool/). The manager and I discussed how sever…
Integration Management Part 2
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question