Mono.Cairo in C# WIN32 app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • flagos

    Mono.Cairo in C# WIN32 app

    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!
  • Jeroen Mostert

    #2
    Re: Mono.Cairo in C# WIN32 app

    flagos wrote:
    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.

    --
    J.

    Comment

    • flagos

      #3
      Re: Mono.Cairo in C# WIN32 app

      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.



      Comment

      Working...