Code Comments
Programming Forum and web based access to our favorite programming groups.Hello Everyone, This may be sort of a newbie question and I realize that it is probably frontend specifc. Assuming that there is a desktop environment I would like to be able to grab a screen scrap using a C program. The code that works for OS X is as follows: PixMap pixMap; GetQDGlobalsScreenBits((BitMap*)&pixMap); if anyone knows the answer to this questions or where I could find unix based c documentation I would greatly appreciate it. Best, Andrew
Post Follow-up to this messagealr288@psu.edu wrote: > Hello Everyone, > This may be sort of a newbie question and I realize that it is > probably frontend specifc. Assuming that there is a desktop > environment I would like to be able to grab a screen scrap using a C > program. The code that works for OS X is as follows: > > PixMap pixMap; > GetQDGlobalsScreenBits((BitMap*)&pixMap); > > if anyone knows the answer to this questions or where I could find unix > based c documentation I would greatly appreciate it. > Best, Andrew > Basically, XGetImage. For details, look in the source code for xwd (part of the X11R6 distribution; http://www.x.org) -- Michel Bardiaux Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles Tel : +32 2 790.29.41
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.