using Image class from console application

  • Thread starter Thread starter Volly
  • Start date Start date
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
 
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.
 
Back
Top