зеркало из https://github.com/mono/mail-archives.git
69 строки
3.0 KiB
HTML
69 строки
3.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-osx] System.Drawing into Cocoa views?
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20System.Drawing%20into%20Cocoa%20views%3F&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="004431.html">
|
|
<LINK REL="Next" HREF="004433.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-osx] System.Drawing into Cocoa views?</H1>
|
|
<B>Eric J. M. Smith</B>
|
|
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20System.Drawing%20into%20Cocoa%20views%3F&In-Reply-To="
|
|
TITLE="[Mono-osx] System.Drawing into Cocoa views?">eric at tarkvara.org
|
|
</A><BR>
|
|
<I>Sun Jul 17 17:59:51 EDT 2011</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="004431.html">[Mono-osx] MonoMac Packaging fails
|
|
</A></li>
|
|
<LI>Next message: <A HREF="004433.html">[Mono-osx] System.Drawing into Cocoa views?
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4432">[ date ]</a>
|
|
<a href="thread.html#4432">[ thread ]</a>
|
|
<a href="subject.html#4432">[ subject ]</a>
|
|
<a href="author.html#4432">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Greetings,
|
|
|
|
I'm new to MonoMac (and to Mono in general). So I apologise in advance for my ignorance.
|
|
|
|
I'm exploring the feasibility of porting a .NET/Windows app to run on the Mac. I've resigned myself to the fact that we'll be rewriting any code which relies on Windows.Forms widgets. Our existing rendering code draws into a System.Drawing.Image, and it would be nice to not have to rewrite everything. Is there any way of drawing into a System.Drawing.Graphics and making the results available to Cocoa? Either by drawing directly into an NSView or by somehow getting the contents of a System.Drawing.Image into an NSImage.
|
|
|
|
I did find some mention on this mailing-list of a "drawing bridge" to do libgdiplus drawing in a Cocoa custom view, but I can't find any documentation or samples for this (plus, it sounds like this approach might require X11).
|
|
|
|
Thanks for your help,
|
|
|
|
Eric Smith
|
|
Tarkvara Design Inc.
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="004431.html">[Mono-osx] MonoMac Packaging fails
|
|
</A></li>
|
|
<LI>Next message: <A HREF="004433.html">[Mono-osx] System.Drawing into Cocoa views?
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4432">[ date ]</a>
|
|
<a href="thread.html#4432">[ thread ]</a>
|
|
<a href="subject.html#4432">[ subject ]</a>
|
|
<a href="author.html#4432">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
|
|
mailing list</a><br>
|
|
</body></html>
|