[Mono-devel-list] Cairo and System.Drawing

Jason King jason.king at profox.co.uk
Wed Oct 15 06:44:21 EDT 2003


Excellent, thank you for clarifying that for me Alexandre, and indeed, I
agree!

Very much appreciated!

Jase

Regards,
Jason King
Profox Systems Ltd

-----Original Message-----
From: mono-devel-list-admin at lists.ximian.com
[mailto:mono-devel-list-admin at lists.ximian.com]On Behalf Of Alexandre
Pigolkine
Sent: 15 October 2003 11:37
To: Jason King
Cc: Mono-devel-list at lists.ximian.com
Subject: Re: [Mono-devel-list] Cairo and System.Drawing


Hello Jason,

You are right, System.Drawing has no C#-glue code as GTK# has.
It Pinvokes gdiplus and it calls Cairo.
But it's possible to consider gdiplus as some sort of C-glue code
between Sys.Drawing and Cairo.

Alexandre


Jason King wrote:

>Hiya, thanks for that.
>
>I would just like to get some stuff clear in my mind.
>
>For the GTK# stuff, a process is run as part of the build, and that process
>builds some C# wrappers around the underlying GTK+ and other libraries
>(Gnome, glade etc etc).  These C# wrappers take the form of <name>Sharp
thus
>gladeSharp etc etc and they are what are commonly referred to as the
'glue'.
>GTK# then uses the glue, and the glue Pinvokes its way to the underlying
>unmanaged libraries.  Is that correct?
>
>Now, with the Cairo stuff, I am thinking that System.Drawing calls GDIPlus
>via pinvoke, and in turn, GDIPlus calls the underlying Cairo libraries.  If
>this is the case, then to my mind, there is no 'glue' code as I know it
from
>the GTK# analogy.  To follow the same logical process as the GTK# system,
if
>there is any "glue" code, then I guess there would be some GDIPlussharp or
>Cairosharp wrappers.
>
>Now, please do not think I am suggesting that it *should* go that way, I am
>merely trying to understand how this works, and my nearest frame of
>reference is the GTK# analogy.  If the glue code that Alexandre mentions
>below is included in System.Drawing namespace as private helper methods,
>then to me, that is not the same as the 'glue' analogy used in GTK#
>discussions.
>
>Please do not think I am criticising anyone or the marvellous work that has
>taken place, I am not picking holes, I am just trying to fill in gaps in my
>knowledge!
>
>Jase
>
>Regards,
>Jason King
>Profox Systems Ltd
>
>
>
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
>
>
>


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list






More information about the Mono-devel-list mailing list