nanogui: Compilinging .xbm bitmap file into Nanox pixmaps


Previous by date: 26 Jan 2001 14:44:03 -0000 License W Toolkit, Wilken Boie
Next by date: 26 Jan 2001 14:44:03 -0000 Re: Child Windows, Jordan Crouse
Previous in thread: 26 Jan 2001 14:44:03 -0000 Compilinging .xbm bitmap file into Nanox pixmaps, Robert Hartley
Next in thread: 26 Jan 2001 14:44:03 -0000 Re: Compilinging .xbm bitmap file into Nanox pixmaps, Alex Holden

Subject: Re: Compilinging .xbm bitmap file into Nanox pixmaps
From: Jordan Crouse ####@####.####
Date: 26 Jan 2001 14:44:03 -0000
Message-Id: <3A718DF5.49CE5950@censoft.com>

You do know that Nano-X handles XPMs directly, so you can load and use
them as a GR_IMAGE?

When we say pixmap in Nano-X, I think thats a bit misleading.  In
Nano-X, a pximap is a offscreen drawable region.  Sometimes
they are called double buffers and offscreen buffers.  Basically, their
main job is to allow you to maintain a drawable area 
off screen, and then copy it in as needed.  Because it is an off screen
drawable (just like a window), anything you can draw on the
screen, you can also draw in a pixmap, including images. 

So for example, consider a small film strip of Tux walking around.  You
have an XPM of some size, with several frames spaced evenly apart.
The best way to handle that is to create an pixmap, and draw the iamge
directly into it, and then copy each frame to the screen (with
GrCopyArea() when you need it.  

However, the biggest problem is that you need to load the XPM at run
time, because we don't support compiled in XPMs (that was to cut down on
stress on the server at runtime we felt it was better to load from disk
than to pass the whole image across the socket).  

This can be easily fixed by a new Gr call, and a couple of mods to the
XPM parser, so if anyone is feeling in the mood, please feel free to
fire away.  

Happy hacking!
Jordan


Robert Hartley wrote:
> 
> Maybe I should rephrase that into a short question:
> 
> How can I get a compiled in ".xbm" type bitmap file into a NanoX pixmap
> so that I can do a GrCopyArea() on it?
> 
> Thanks.
> 
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> =  Robert Hartley                 Mail:         201 Broadway        =
> =  Central Region Systems Engineer              Cambridge, MA 02139 =
> =  Integrated Computer            Email:        ####@####.####    =
> =  Solutions, Inc.                Web Site:     www.ics.com         =
> =  Tech Support: ####@####.####  Phone:        800-800-4271        =
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
> Visit the MotifZone (www.motifzone.org) for info on Motif!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

Previous by date: 26 Jan 2001 14:44:03 -0000 License W Toolkit, Wilken Boie
Next by date: 26 Jan 2001 14:44:03 -0000 Re: Child Windows, Jordan Crouse
Previous in thread: 26 Jan 2001 14:44:03 -0000 Compilinging .xbm bitmap file into Nanox pixmaps, Robert Hartley
Next in thread: 26 Jan 2001 14:44:03 -0000 Re: Compilinging .xbm bitmap file into Nanox pixmaps, Alex Holden


Powered by ezmlm-browse 0.20.