using Image class from console application

V

Volly

Helo !

I want write console application and I want to reuse
my old class, but inside it is used Image class
(and System.Drawing.Imaging namespace).

I can't complile it. The error is:

The type or namespace name 'Drawing' does not exist in the class
or namespace 'System' (are you missing an assembly reference?)

So, can I call Image (or others, ie. WinFormS, etc.) class from
console application.

Best regards,
Walter
 
P

Patrick Steele [MVP]

Helo !

I want write console application and I want to reuse
my old class, but inside it is used Image class
(and System.Drawing.Imaging namespace).

I can't complile it. The error is:

The type or namespace name 'Drawing' does not exist in the class
or namespace 'System' (are you missing an assembly reference?)

So, can I call Image (or others, ie. WinFormS, etc.) class from
console application.

Add a reference to System.Drawing.dll.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top