PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Is it possible to create a surface in a windowless process?

Is it possible to use gapidraw to draw to surfaces that are not part of a windowed process, for example a Windows service? I want to simply draw on the surfaces and the SaveSurface() to a PNG.

The problem is that i cannot seem to create a surface without first initializing the GapiDisplay which requires an HWND, which is what i dont have.

Any ideas?
Hello,

Yes you need an open CGapiDisplay. But you can use CGapiDisplay::CreateOffscreenDisplay:
http://www.develant.com/docs/gapidraw/3 ... -frame.htm

Sincerely
Johan