[comp.windows.x] Displaying large bitmaps properly

jtc@motcad.portal.com (J.T. Conklin) (08/03/90)

I'm fairly new to X, and am wondering what is the proper way to display
large (full page) bitmaps in a scrolled window under X.  I hacked up a
simple program for a demonstration, but a lot of time is used just to
copy the image from the client to the server.

I was thinking that perhaps a better way was to send only the part of the
image that is visible in the clipping window to the server, and to send the
remaining bits and pieces as the sliders are moved.

Does this sound like a reasonable course of action.  How would you do it?

	--jtc

-- 
J.T. Conklin	CADnet Inc, San Ramon California
		jtc@motcad.portal.com, ...!portal!motcad!jtc

jimf@SABER.COM (08/05/90)

|I'm fairly new to X, and am wondering what is the proper way to display
|large (full page) bitmaps in a scrolled window under X.
[...]
|Does this sound like a reasonable course of action.  How would you do it?

Take a look at /contrib/xloadimage.1.06.tar.Z on expo.lcs.mit.edu,
especially the code in send.c and window.c.  It loads images onto a
pixmap and then copies to the window.  This works well on most servers
unless they have limited memory.

jim frost
saber software
jimf@saber.com