Re: need pointer to using MagickXDisplayBackgroundImage, MagickXResourceInfo *

Bob Friesenhahn <[email protected]> Wed, 5 Oct 2011 09:11:45 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
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.

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