Please Help: Opening X-window For My App. & Displaying Images
Hi all, this is what I exactly need:
I want to open an application window on my linux desktop and I want to display RAW images on it, i.e. gray levels from 0 to 255.
I don't know how I can interact with the damn X-Server and I don't have any time to learn it now, so, if anyone can refer me to some ready codes that will
1) open an empty X-window for me
2) I have the codes to read RAW data from file.
3) I need to display the corresponding Gray Levels on the window. (Just like your favorite Picture Viewer, the only difference is, I will not mess with decompressing JPEG, I will quickly display a RAW image file instead)
Any help or at least small suggestions are greatly appreciated!!!
Xlib.h or how to install xlib development package
Thanks. That was really good... For those who are interested, I also found a simple program at
But when I compile this program, it seems that I don't have the include file Xlib.h, and really I can not locate that file. I have searched the web BUT couldn't find that package! Does anyone know how I can install the package including Xlib.h?
ps: I use Mandriva 10.1 & X11R6