Re: need pointer to using MagickXDisplayBackgroundImage, MagickXResourceInfo *

Bob Friesenhahn <[email protected]> Wed, 5 Oct 2011 11:22:49 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Wed, 5 Oct 2011, [email protected] wrote:
>
> As I'm exploring the API/functionality, writing to the root joined my
> wish-list. All the work I'm doing so far is in C, so I wanted to keep
> this work in C too; I use (and have used for years) "gm display -root",
> so I knew the functionality existed. Currently, I've punted and do just
> exec() gm to get this effect. The wm grabbing windows is a seperate
> problem that I'll deal with case-by-case. If there's some targetted
> GMDisplayToRoot()-style call I'm missing, or pointers for working w/
> what I've started with, I'll take any hints I can get :)

It has been quite a while since I have been embroiled in this old X11 
code in order to improve operation and fix (the many) memory leaks so 
I don't remember how it works any more.  You have the option of 
looking at magick/display.c code to see how it works, or even punting 
and using high-level utility-style command functions from 
magick/command.h (e.g. GMCommand() or DisplayImageCommand()).  I am 
not sure if there are any ill-effects from using these high-level 
functions in the same context as other code which uses lower-level API 
functions.  Only testing will prove if it works well.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1