Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Closed Thread
  Search this Thread
Old 12-15-2006, 11:14 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 19

Rep: Reputation: 0
Talking Draw graphics with C#

I would like to make a program to draw a bar graph in C#.

I'm using SUSE10.0. and I have Mono installed.

I checked out the Mono website -, and saw straight away Cairo.
Which looked great for 2D drawing.

I installed Cairo 1.0.0-7 from my SUSE10.0 CD. (Just by running the rpms cairo, cairodevel, and the documentation cairodoc through YAST).

Eager to test it, I pasted the program 'Graphics.cs' - from the mono/drawing webpage into a new C# empty file in the Mono editor.

The mono/drawing webpage says that this program'Graphics.cs' provides 'a Graphics with a Gdk.Drawable target surface.' (at least it looks that way to me))

Anyway, I hit the Build button, to compile it, but I got these error messages-

-The namespace Cairo cannot be found (missing assembly reference?)
-Cannot find type Cairo.Context(CS0246)

What is going on????????????????????????

If anyone can help me, I will be eternally grateful!!!!!!!!!!

Last edited by JohhnyAlpha8; 12-15-2006 at 11:19 AM.
Old 12-15-2006, 11:27 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,807

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Belongs in programming, but please do not post for the third time. I'll report for movement
Old 12-15-2006, 02:32 PM   #3
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I draw an image with Qt? Ephracis Programming 3 06-27-2009 06:10 AM
How can i draw jpeg graphics by glade tonewangl Linux - Software 2 06-10-2005 11:24 PM
how to draw info from .pdf? pipehappy Linux - Software 1 01-22-2005 08:32 AM
xtraceroute doesn't draw locations stupid_guy Linux - Newbie 2 02-28-2004 10:30 AM
Draw Circle Gerardoj Programming 11 08-24-2003 05:32 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:33 PM.

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