Mono.Cairo in C# WIN32 app

F

flagos

Hi to all!

Any of you know if it's possible to use the Cairo graphics library in
a WIN32 c# application? I know there is a binding made for Mono but my
app will run on win32 so obviously I wont need Mono.

Any help will be appreciated. Thanks!
 
J

Jeroen Mostert

flagos said:
Any of you know if it's possible to use the Cairo graphics library in
a WIN32 c# application? I know there is a binding made for Mono but my
app will run on win32 so obviously I wont need Mono.
Why exactly have you picked Cairo as opposed to Windows.Forms, WPF or Gtk#?
Bindings for those are readily available.

AFAICT there is no pre-built .NET wrapper for Cairo outside of Mono. It's
probably possible to extract and adapt Mono.Cairo for the Microsoft CLR. If
you're lucky it's purely managed without dependencies on other parts of
Mono, in which case you don't need to change anything at all and the
assembly will just work for any .NET application. If you're slightly less
lucky there will be some dependencies with other Mono code, and if you're
very unlucky it will integrate with unmanaged parts of the Mono CLR. I'd be
surprised if that were the case, though.

Should all this be too much trouble, you could always write your application
for Mono anyway. Mono runs on Win32 just fine, and just because you don't
need your application to be portable doesn't mean it *musnt't* be either.
 
F

flagos

Thanks for your answer!
Why exactly have you picked Cairo as opposed to Windows.Forms, WPF or Gtk#?

I'm looking for a 2d drawing/visualization engine. Not a GUI toolkit.

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top