LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-21-2006, 10:12 AM   #1
diptenduray
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
graphics(geometrical figures) in linux through c or c++?


hi
i wanna do simple graphics in linux like drawing circles lines or other geometrical figures....can anyone tell me how to do it ...i mean what r the libraries required for drawing figures etc using c or c++ as the language...also help me with any reference site for the programmin details.

thnx
 
Old 12-21-2006, 12:44 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Two that I know of: cairo & GD. Both have C/C++ bindings AFAIK.

--- rod.
 
Old 12-21-2006, 12:49 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You will need graphics libraries, such as qt, gtk, or openGL.

A few seconds googling (www.google.com/linux) for 'c++ draw tutorial' will start you off.
 
Old 12-22-2006, 03:14 AM   #4
diptenduray
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thank you both of u ...I will start it right off
 
Old 12-22-2006, 12:26 PM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I can't believe I forgot about ImageMagick. It has been around for quite a while, and many distros probably include it right out of the box.

--- rod.
 
Old 05-16-2008, 02:17 PM   #6
josedsilva
LQ Newbie
 
Registered: Apr 2002
Location: Goa, India.
Posts: 23

Rep: Reputation: 15
You can install svgalib from (http://svgalib.org) if you want to draw graphics without the need for X windows.
Svgalib has a nice library, namely vgagl, that provides you with basic drawing primitives.
I have written a wrapper library for svgalib in C that makes graphics management much easier. You can mail me at josedsilva@yahoo.com for the latest source code.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with Wikipedia symbols and figures dave-a-mbs Linux - Desktop 4 11-03-2006 06:53 PM
Makefile for LaTeX file with figures enemorales Programming 1 11-15-2005 04:03 PM
Awk losing significant figures. UnHolier Mandriva 4 03-15-2005 12:54 PM
LaTeX problem with figures guygriffiths Linux - Software 4 11-15-2003 01:35 PM
how to edit ps figures? dragon Linux - Software 1 07-02-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration