Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    6

    Question 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!

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    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

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    6

    Angry 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

  4. #4
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    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

  5. #5
    Just Joined!
    Join Date
    Jul 2006
    Posts
    6

    Exclamation 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.

  6. #6
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •