Add reference for System.Drawing.Drawing2D

3 replies [Last post]
Offline
Last seen: 38 weeks 10 min ago
Joined: 12/24/2009
Posts:

Hello can you make so we can add System.Drawing.Drawing2D as a reference, please.

Glad to see you've made progress on this. Used a few months ago and you were talking about adding windows forms.

tim.speed's picture
Offline
Last seen: 3 days 7 hours ago
Joined: 02/24/2010
Posts:
You can,

You can,

System.Drawing.Drawing2D is a namespace within the System.Drawing library.
So add System.Drawing as a reference, and you can use System.Drawing.Drawing2D

You may want to use an import statement at the top of your code:
VB.net:
Imports System.Drawing.Drawing2D
C#:
using System.Drawing.Drawing2D;

-----------------
Tim Speed
Compilr Developer and CTO

Offline
Last seen: 38 weeks 10 min ago
Joined: 12/24/2009
Posts:
Oh thanks. I thought I was

Oh thanks. I thought I was getting a bug by not having that as a reference but found it was me :). But I will add the using statement to make using it easier.

tim.speed's picture
Offline
Last seen: 3 days 7 hours ago
Joined: 02/24/2010
Posts:
It can be confusing with the

It can be confusing with the .net libraries, as many of them have the same name as their name spaces.

Happy to help :)

-----------------
Tim Speed
Compilr Developer and CTO