Skip navigation.
Home
The QNX Community Portal

View topic - run Photon API in non photon QNX environment

Page 1 of 1

run Photon API in non photon QNX environment

PostPosted: Tue Jan 03, 2012 3:11 pm
by vaibhawa
Hi,

I wrote a simple program using PgReadScreen() to take a snapshot and store it in BMP format (reffered qnx article 293_3). But it works only when compiled in photon environment.

My requirement is to run it in a non photon QNX environment. Can someone help me in this regard?

vaibhawa

Re: run Photon API in non photon QNX environment

PostPosted: Wed Jan 04, 2012 1:36 pm
by mario
You can use PgReadScreen() without Photon, it just doensn't make sense otherwise.

What is you are trying to do?

Re: run Photon API in non photon QNX environment

PostPosted: Thu Jan 05, 2012 12:55 am
by maschoen
mario wrote:You can use PgReadScreen() without Photon, it just doensn't make sense otherwise.

What is you are trying to do?


I'd have thought so too, however...

Are you using 6.4.0+?

Take a look at the gf_*() routines. gf_display_snapshot() looks like a possible route to what you want. You still need to be running the graphics driver.