Results 1 to 6 of 6
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 ...
- 07-08-2006 #1Just Joined!
- Join Date
- Jul 2006
- Posts
- 6
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!!!
Thanks!
- 07-08-2006 #2
http://tronche.com/gui/x/ is a great site for learning how to use Xlib. You'll be looking at XCreateWindow (or better yet, XCreateSimpleWindow), and GC-related functions.
Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794
- 07-09-2006 #3Just Joined!
- Join Date
- Jul 2006
- Posts
- 6
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
http://users.actcom.co.il/~choo/lupg...mple-drawing.c
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?
Thanks!
ps: I use Mandriva 10.1 & X11R6
- 07-09-2006 #4
What distro are you using? It's usually a package called libX11, or something similar.
Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794
- 07-09-2006 #5Just Joined!
- Join Date
- Jul 2006
- Posts
- 6
Don't know
I'm not really sure what that means.
Is it the release number of my X server?
If so, it is X11 Release 6.7.
Otherwise can you show me how I can tell you that?
Thanks.
- 07-09-2006 #6
Sorry, I don't think my last post was very clear; the two statements were completely unrelated and seperate.
The package you have to install is usually called libX11 or something similar, but I wanted to know your Linux distribution to confirm that.Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794


Reply With Quote
