Re: need pointer to using MagickXDisplayBackgroundImage, MagickXResourceInfo *
[email protected] Wed, 5 Oct 2011 15:56:11 +0000
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Oct 05, 2011 at 09:11:45AM -0500, Bob Friesenhahn wrote: > On Wed, 5 Oct 2011, [email protected] wrote: > >>> From C, want to be able to write to X11 root window. Am looking for >> examples using MagickXDisplayBackgroundImage() (which appears to me to >> be only way forward). I think improperly initialized MagickXResourceInfo >> struct. I'm getting segfault at MagickXDisplayBackgroundImage(). > > I am no sure that you need such a detailed function since you only need > to display an image into the root window. Note that displaying into the > root window does not work with many of today's window managers which > absolutely insist on displaying their own background image. > > Without further API investigation, I have had success in the past using > the 'gm display' tool and '-window root'. Also in the past, I added the > '+progress' option so that an image may be displayed cleanly without any > on-screen progress indication. The '-remote' mode may be used if image > loading needs to be remote controlled. > > In the past, GraphicsMagick was used inside an award-winning ("Best New > Product") multimedia device with embedded Linux and was used to display > splash/information screens as well as animated slide shows. Bare X11 was > used with no window manager. Hi Bob. 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 :) -bch > Bob > -- > Bob Friesenhahn > [email protected], http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ -- Brad Harder Method Logic Digital Consulting http://methodlogic.net/ http://twitter.com/bcharder ------------------------------------------------------------------------------ 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