[Mono-osx] Using System.Drawing to render to a cocoa NSView

Martin Smith martin.smith.jr at gmail.com
Wed Sep 17 21:28:50 EDT 2008


Hello,

I would like to render to a cocoa NSView using a Graphics object.
I've played around with System.Drawing a bit, and haven't found an
easy way to do this.  I was wondering if anybody knew the best way to
go about doing this.  I'm bouncing between creating my own layer that
does rendering and eschewing Mono's System.Drawing layer altogether,
but I was wondering if there might be an easier way to leverage Cairo
to render to a CGContextRef that's backed by an NSView.

Thanks in advance,
Martin


More information about the Mono-osx mailing list