Converting Co-Ordinates to Image

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