Sending an Image to an SGI X11 server(IRIX 5.3)

Sending an Image to an SGI X11 server(IRIX 5.3)

Post by Walter Benzi » Sat, 08 Jun 1996 04:00:00


is there anything I should know about sending an Image to a SGI via
XPutImage. I only have access to a DEC Alpha and a HP so I depend
on error reports from other people.

This is what my Program thinks the display is:

Image dump:
Display : 272914256
Visual: 272919104
Depth: 24

Width: 0
Height: 0
Offset: 0
Format: 2
Byte Order: 1
Bitmap unit: 32
Bitmap Bit Order: 1
Bitmap Pad: 32
Depth: 24
Bytes per Line: 0
Bits per Pixel: 32

Also the owner confirms it is a 24 bit display.

At the moment I'm doing the following:

a) XListDepths = > use the highest number I can get
b) XIm= XCreateImage(Display, Visual, Depth(s.above),
                ZPixmap, 0, NULL, 0, 0, BitmapPad(HWI->dpy), 0);
   creates an Image structure for an Image of size 0 x 0.
c) I check the information in this structure (like bits_per_pixel)
   byte_order etc. to select the correct display routine.

So whats wrong ?????????

XPutImage insists on:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  72 (X_PutImage)
  Serial number of failed request:  2870
  Current serial number in output stream:  2871

Using XListPixmapFormats didn't work on my Alpha, so this out of question
as well.

I checked the algorithm on a DEC Alpha and a HP PA-Risc with 1,2,4,8 and 24
bit display, but I don't have access to a 32 bit display (32 bits per pixel)

Any ideas someone ??????


Walter Benzing


1. 3.6Pre332: `unable to open display` with x11 driver under IRIX 5.3

I just compiled b332, with gcc-2.7.2, readline-2.0, gd-1.2, png-0.89,
under Irix 5.3 (SGI).  The XOpenDisplay call fails with:  

        gnuplot: unable to open display 'maigret:0'
        gnuplot: X11 aborted.

Any ideas?  (there are no 'permission' problems -- xclock opens a
display just fine).  

Note: this is an 8-bit display.  Should that be a problem?

FYI: the linking step is:

gcc -o gnuplot alloc.o binary.o bitmap.o command.o contour.o datafile.o
eval.o fit.o graphics.o graph3d.o help.o hidden3d.o internal.o
interpol.o matrix.o misc.o parse.o plot.o plot2d.o plot3d.o readline.o
scanner.o set.o show.o specfun.o standard.o term.o time.o util.o
util3d.o  version.o  -lgd -lpng -lz -lreadline -lm -ltermcap

[There was an autoconfigured -lsocket there, but it's not needed, and
makes no change]

2. Can I Get the Files Napster Censors? <--- YES! Here's How!

3. POVRAY for SGI Irix 5.3

4. .IMG -Lotus AmiPro 3.0

5. Povray 3.01 compilation on SGI Irix 5.3

6. textures and transparency

7. PovRay on SGI Irix 5.3

8. help with vector to euler

9. Where can I find pov3 for SGI IRIX 5.3

10. Request for X11R6 Xvfb on sgi Irix 5.3

11. Xview 3.2 libraries for SGI Irix 5.3

12. Autocad Release 13 Display Problems/Irix 5.3/Sgi Indy

13. Problem porting X application from IRIX 5.3 to IRIX 6.4