Writing a screen grabber

Does anybody have any insight on writing a simple screen grabber that
takes a snapshot of the entire screen, formats it for the printer, and
prints it?

I am aware of the “snapshot” utility, but I need to write something
that’s simpler to use, i.e. press a button, and out pops a printout of
what’s on the screen.

Mathew,
Here is a good article about this:
http://www.qnx.com/developer/articles/index.html?article=sep2501
However, it only addresses the capturing of the screen, not the printing,
but this should be not too difficult
Markus

“Mathew Kirsch” <mkirsch@ocdus.jnj.com> schrieb im Newsbeitrag
news:b2110f$qh2$1@inn.qnx.com

Does anybody have any insight on writing a simple screen grabber that
takes a snapshot of the entire screen, formats it for the printer, and
prints it?

I am aware of the “snapshot” utility, but I need to write something
that’s simpler to use, i.e. press a button, and out pops a printout of
what’s on the screen.

Markus Löffler wrote:

Here is a good article about this:
http://www.qnx.com/developer/articles/index.html?article=sep2501
However, it only addresses the capturing of the screen, not the printing,
but this should be not too difficult

Thanks.

Even though the code in the article was wrong (much of the example code
in QNX articles & documentation won’t compile), I did manage to get it
to work.

Now, if I could find a tutorial on how to write a bit of code that
translates this data into .phs format for the spooler… I’ve been
through all the Photon stuff in the help documentation that comes with
QNX, and I’ve come up empty. Searching the article database is
pointless; a search for “print” or “printing” comes up empty. In fact, a
search for ANY keyword comes up empty. What’s the deal?