Convert Pen to IntPtr

Posted by Bevin on Stack Overflow See other posts from Stack Overflow or by Bevin
Published on 2010-03-20T16:21:35Z Indexed on 2010/03/20 16:31 UTC
Read the original article Hit count: 388

Filed under:
|
|

Is there a simple way to convert a System.Drawing.Pen into its unmanaged counterpart? Like, if you had a Pen like this:

Pen p = new Pen(Color.Blue, 1f);
IntPtr ptr = p.ToPtr();

I know this code doesn't work, but is there a way to do it similarly?

© Stack Overflow or respective owner

Related posts about c#

Related posts about gdi+