[Mono-winforms-list] Howto mix WinForms and Cairo?
Miguel de Icaza
miguel at ximian.com
Sat Sep 3 17:37:38 EDT 2005
Hello,
> I'm not sure I understand what you mean with 'mix'. The cairo contexts we
> use are not accessible to your app (they are kept internal to libgdiplus).
> You should be able to use Mono.Cairo without any problems, assuming you're
> not trying to draw on Winforms' windows. That's a no-no, since you don't
> have access to the X drawables you'd need to setup a cairo context.
> The proper way to do that is to use System.Drawing, which is compatible with
> Winforms. Whenever you want to draw on a window, you override OnPaint, and
> as part of the events, you get a System.Drawing graphics context With that
> context you can use any System.Drawing method to draw whatever you need.
>
> Maybe a description of what exactly it is you are trying to do would help.
I wonder if the Winforms handles are X handles, and if so, they could be
used with Cairo.
Miguel.
More information about the Mono-winforms-list
mailing list