Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - how to read the actual photon region: (3 Items)
   
how to read the actual photon region  
We need to know the best way to read in a photon region to an image or char array. So we have access to the pixel color 
data. We are using QNX4.25.
We want to grab the screen from a process, which will not draw to photon and should just read back what another process 
have drawn.

We did not find a suitable function to accomplish that, we just found out that QNX6 has the PgReadScreen function to do 
this.
Re: how to read the actual photon region  
Hi Sebastian,

Unfortunately, PgReadScreen() is not implemented in QNX 4. So you have two option:

1. Use snapshot utility.
2. In case of using Pg.flat* driver you can determine physical framebuffer address, map it in your app and read from it 
according to current graphics mode.

Respectfully,
Oleg

> We need to know the best way to read in a photon region to an image or char 
> array. So we have access to the pixel color data. We are using QNX4.25.
> We want to grab the screen from a process, which will not draw to photon and 
> should just read back what another process have drawn.
> 
> We did not find a suitable function to accomplish that, we just found out that
>  QNX6 has the PgReadScreen function to do this.


Re: how to read the actual photon region  
Hi Oleg,

thank you for your valuable suggestions.
These options have also come to my mind.

Best regards,
Sebastian

> Hi Sebastian,
> 
> Unfortunately, PgReadScreen() is not implemented in QNX 4. So you have two 
> option:
> 
> 1. Use snapshot utility.
> 2. In case of using Pg.flat* driver you can determine physical framebuffer 
> address, map it in your app and read from it according to current graphics 
> mode.
> 
> Respectfully,
> Oleg
>