Using GDI+ in a class library

dgorka

Well-known member
Joined
Dec 27, 2006
Messages
88
Programming Experience
5-10
I'm trying to create a DLL that I could plug into multiple applications to do various image manipulations. When creating my class library project though, I noticed that I can't import System.Drawing.

Is this not allowed at all since there really isn't any UI going with the solution, or is there something else that I need to do? Its been quite a while since I've made a DLL, but I should be using a Class Library correct? Because a Control Library would be for creating new UI controls I would think.

Any help anyone can give me on this would be very appreciated.
 
You have to Add Reference to the System.Drawing class library before you can import the namespace.
 
You're a life saver John. I guess I was expecting it to add that automatically like it does for my windows forms projects. Thanks!
 
Back
Top