| Author |
Message |
|
|
Post subject: How to make a snapshot of the screen/window at runtime?
Posted: Jun 22, 2007 - 08:06 AM
|
|
Active Member
Joined: May 29, 2006
Posts: 10
|
|
Hello,
I'd like to make a snapshot of the sreen/window/area at run time form my PhAB C apllication. I bulid an HMI and I want to add new integrated functionality for users to make a screenshot of current data on the screen. As I found it was easy to do it in QNX 4.25 with snapshot command (with relevant options) e.g.:
snapshot -A 100*100 -o 50*50 -p "BMP Spool File" -f /src/photon/apps/print1.bmp
But in QNX 6.3 version it doesn't work by this way.
Could you give me a tips how to do it by code, please?
Thans, Meg |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: How to make a snapshot of the screen/window at runtime?
Posted: Jun 22, 2007 - 10:17 AM
|
|
Senior Member
Joined: Jul 22, 2004
Posts: 346
|
|
The parameters given to snapshot are just for the GUI-App Snapshot, so not a direct screenshot.
I don“t think there is anythink like the old console-driven-snapshot possible, unless you write your
own shot-app |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 22, 2007 - 10:53 AM
|
|
Active Member
Joined: May 29, 2006
Posts: 10
|
|
| OK, but could you give me some principle idea how on it? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 22, 2007 - 01:14 PM
|
|
Senior Member
Joined: Jul 22, 2004
Posts: 346
|
|
I think you would need to open a memoryContext and Copy your current DC into it, where the DC is the MAIN-Screen
I do right now do not have the time to check this, but i will try this soon i guess  |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 25, 2007 - 11:34 AM
|
|
Active Member
Joined: May 29, 2006
Posts: 10
|
|
|
|
|
 |
|
|
Post subject:
Posted: Jun 25, 2007 - 01:08 PM
|
|
Senior Member
Joined: Jul 22, 2004
Posts: 346
|
|
thx a lot, so i do not have to try that long now  |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 28, 2007 - 02:31 PM
|
|
New Member
Joined: Aug 04, 2005
Posts: 2
|
|
| Any know, how to draw widget to memory context? |
|
|
| |
|
|
|
 |
|
|