LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Draw graphics with C# (https://www.linuxquestions.org/questions/programming-9/draw-graphics-with-c-510734/)

JohhnyAlpha8 12-15-2006 11:14 AM

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

pixellany 12-15-2006 11:27 AM

Belongs in programming, but please do not post for the third time. I'll report for movement

crabboy 12-15-2006 02:32 PM

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.

http://www.linuxquestions.org/questi...84#post2545084


All times are GMT -5. The time now is 11:50 AM.