OpenQNX :: The QNX Community Portal

Aug 21, 2008 - 06:30 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 52 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
meg
Post subject: How to make a snapshot of the screen/window at runtime?  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
micro
Post subject: RE: How to make a snapshot of the screen/window at runtime?  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
meg
Post subject:   PostPosted: 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?
 
 View user's profile Send private message  
Reply with quote Back to top
micro
Post subject:   PostPosted: 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 Smile
 
 View user's profile Send private message  
Reply with quote Back to top
meg
Post subject:   PostPosted: Jun 25, 2007 - 11:34 AM
Active Member


Joined: May 29, 2006
Posts: 10

For all others...

I found a good example here:

http://www.qnx.com/developers/articles/article_293_2.html

I works nice!!!
 
 View user's profile Send private message  
Reply with quote Back to top
micro
Post subject:   PostPosted: 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 Smile
 
 View user's profile Send private message  
Reply with quote Back to top
ke
Post subject:   PostPosted: Sep 28, 2007 - 02:31 PM
New Member


Joined: Aug 04, 2005
Posts: 2

Any know, how to draw widget to memory context?
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.