Converting Co-Ordinates to Image

T

Timbo

Hello All,

I have a need to convert a string of co-ordinates into a bitmap image,
fairly straight forward if I was using a Form, but I would like to do it
using a Class module, and I can't import the System.Drawing namespace into a
Class module. Does anyone have any way around this little dilemma? I am
using VS2005, I could update to VS2008 if it can be done with it.

TIA

Tim
 
S

Stanimir Stoyanov

Hello Tim,

You can add the System.Drawing namespace to any class definition provided
you have the System.Drawing.dll assembly added to the project. Therefore, I
think you meant that your application is console-based, in which case you
should add the assembly using Project->Add Reference. You can then use all
of the drawing functionality as in every Windows Forms-based program.
 
A

Armin Zingler

Timbo said:
Hello All,

I have a need to convert a string of co-ordinates into a bitmap
image,

In what way do they have to be converted? Give an example of such a String
please.
fairly straight forward if I was using a Form, but I would
like to do it using a Class module, and I can't import the
System.Drawing namespace into a Class module.

Why not? Error message? Should work. Can you show the relevant pieces of
code?
Does anyone have any
way around this little dilemma? I am using VS2005, I could update
to VS2008 if it can be done with it.

Must also work in VB 2005.


Armin
 
T

Timbo

Thanks Stanimir - You're a star!


Stanimir Stoyanov said:
Hello Tim,

You can add the System.Drawing namespace to any class definition provided
you have the System.Drawing.dll assembly added to the project. Therefore,
I think you meant that your application is console-based, in which case
you should add the assembly using Project->Add Reference. You can then use
all of the drawing functionality as in every Windows Forms-based program.
 

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