Click to See Complete Forum and Search --> : Graphics in LINUX (c++)


Desvario
May 11th, 2004, 05:21 AM
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.

Yves M
May 11th, 2004, 06:03 AM
There are plenty of ways (and that can be confusing, I know). The very basic system is xlib (http://tronche.com/gui/x/xlib-tutorial/) , which also exists on other Unices but is a bit cumbersome and difficult. Then there is Motif (http://www.opengroup.org/motif/) which used to be the platform of choice for many companies. Nowadays, you probably want to use either KDE (http://developer.kde.org/) (which is built on top of QT (http://doc.trolltech.com/3.3/index.html) ) or Gnome (http://developer.gnome.org/doc/GGAD/).

treuss
May 11th, 2004, 06:50 AM
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?

matthias_k
May 11th, 2004, 08:05 AM
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).

Desvario
May 12th, 2004, 05:17 AM
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.

Yves M
May 12th, 2004, 06:46 AM
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.