Windows Mobile 5 newbie, C++, Win32
I want to get a pointer to a memory buffer containing raw pixel data from
an image loaded from a file. I've got code that loads the file into memory,
and code that displays that image. But I want to access the memory that has
the image data directly, and I want to do it my own buffer ins of the display
memory.
I can access the framebuffer directly: I do that by creating a surface with
IDirectDraw::CreateSurface, which creates one for the device's display.
Is there a way to get a surface for an in-memory device context?
GetSurfaceFromDC would seem to do this, except that its documentation says
that it "will succeed only for device context handles that identify surfaces
already associated with the DirectDraw object." I don't know how to set up a
device context to do that.