CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2003
    Posts
    187

    Question Graphics in LINUX (c++)

    ok, i dont have a clue how to manipulate graphics in linux using G++ compiler (c++). Does anyone have a simple example code for me? I am used to VC++ but now i have to work with Linux and graphics. Any help will be welcome.

    Thanks a lot.

    Nice day to everyone.

    Desvario.
    Caminante no hay camino, se hace camino al andar.

  2. #2
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    There are plenty of ways (and that can be confusing, I know). The very basic system is xlib , which also exists on other Unices but is a bit cumbersome and difficult. Then there is Motif which used to be the platform of choice for many companies. Nowadays, you probably want to use either KDE (which is built on top of QT ) or Gnome.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  3. #3
    Join Date
    Jan 2004
    Location
    Düsseldorf, Germany
    Posts
    2,401

    Re: Graphics in LINUX (c++)

    Originally posted by Desvario
    ok, i dont have a clue how to manipulate graphics in linux.
    What kind of graphics? Do you want to manipulate graphic files (e.g. gif, jpeg) or do you want to create a graphical user interface?

  4. #4
    Join Date
    Mar 2003
    Location
    Germany, K-Town
    Posts
    578
    Actually this is neither a compiler nor language specific problem. If you want to display graphics, it's a question of choosing the right library (which almost always have bindings to several programming languages).
    - Matthias

    "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." - Bjarne Stroustrup

  5. #5
    Join Date
    Apr 2003
    Posts
    187

    thanks...

    Yeap, i am trying to manipulate graphics... Like bmp or jpg. Suppose to create a GUI that will provide options like: rotate, change size and stuff like that. The HUGE problem is that i am used to "play" around with VC++ and not under Linux environment. I saw that i can use some libraries as someone said, but where can i find them? Which ones are the bests?

    Thanks a lot.

    Desvario, the lost one.
    Caminante no hay camino, se hace camino al andar.

  6. #6
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    In my first message, you have the links to all the libraries. If you have linux installed, you will most likely already have GTK and KDE installed as well, so you just need to read the documentation and the samples (linked to above) to get started.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured