[comp.windows.x] Help wanted

narit@risky.Convergent.COM (Narinder S. Thakral) (08/01/90)

  I am developing a test suite for testing X-windows.
Is there any test software available in the public domain for testing
X-windows?

Any information would be appreciated.
Can anyone offer any suggestions about it?

Thanx .


  

-Narinder Thakral.
 narit@risky.Convergent.COM

sandvig@poincare.geom.umn.edu (Cary &) (11/01/90)

In article <701@inews.intel.com> bhoughto@cmdnfs.intel.com (Blair P. Houghton) writes:
}In article <1528@ontek.com> mikey@ontek.com (michelle (1-800-KRILL4U) lee) writes:
}>ram@Prawn.XAIT.Xerox.COM (Ramprasad Krishnamurthy) writes:
}>>Could anyone suggest an icon to represent a task.
}>
}>#define task_width 16
}>#define task_height 16
}>static char task_bits[] = {
}>   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x27, 0x96, 0x52, 0x51,
}>   0x72, 0x32, 0x52, 0x54, 0x52, 0x93, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
}>   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
}
}+-----------------------------------+
}|                                   |
}|@@@@@@@@ @@@@@@@@                  |
}|                                   |
}|  @  @@@ @  @ @@   @ @  @   @ @   @|
}|                                   |
}| @@@  @    @@  @   @ @  @   @ @ @  |
}|                                   |
}| @ @  @  @  @  @@                  |
}|                                   |
}|@@@@@@@@ @@@@@@@@                  |
}|                                   |
}+-----------------------------------+
}
}I don't get it.

You got your dimensions wrong, plus the icon stuff flips the order of the bits.
Thus:

+----------------+
|                |
|                |
|@@@@@@@@@@@@@@@@|
|                |
|@@@  @   @@ @  @|
| @  @ @ @   @ @ |
| @  @@@  @  @@  |
| @  @ @   @ @ @ |
| @  @ @ @@  @  @|
|                |
|@@@@@@@@@@@@@@@@|
|                |
|                |
|                |
|                |
|                |
+----------------+


"Demonstrating my geekhood for all to see."   -Me


And if your not _very_ carefull I'll start doing graph theory...

--

                                   -Cary
"Son, I just want you to know: life is a black, sucking, vortex of anguish and
dispair, filled with brief moments of false hope and empty joy, all the while
dragging you inevitably closer to final, absolute, and eternal death."
"thanks dad.."

majidi@yoko.rutgers.edu (Masoud Majidi) (06/11/91)

Hi,

I have a simple problem that has been bugging me for a week and I
appreciate it if anyone out there could help me. (From my question it
should be obvious that I am not an experienced X programmer!)

I have a gray scale image (256 level) and all I want to do is to open
a window on my color display workstation (it has 8 color planes) with
that image. I don't know whether I need to define a new colormap or
just changing the visual will do the job. I wrote a program that will
open a window with a bitmap image so my problem is to go from 2 levels
to 256 levels)

I appreciate it if you let me know how I can do this or even better
send me sample code (if you already have one) for bringing up a gray-scale
image on a color display.

Thanks again,

Masoud Majidi(majidi@yoko.rutgers.edu)