Need help to create a map

  • Thread starter Thread starter Paul M
  • Start date Start date
P

Paul M

Hi

I need to create a map for a room (chairs, bed, TV, forniture, etc).
All object allready exists like png images. I need to create a map for
each room, i mean the user need to create.

How can I do this?

TIA,
Paul
 
First YOU attempt it yourself, post snippets of where you got stuck or some
methods of solving this that YOU have thought of. Then people help you when
you are stuck on the way.
 
I'm stuck now, because I have images of my objects in png format but i
don't know how to use them like this:
- user can modify the map (position of objects)
- user can select object and selected object must return id value;

Is necesary some envelope to keep togheter all object...can I put object
directly on form??

I need first guidance to create something, more than the ideea.
If my ideea is wrong I would like to know now, not 3 month later an
recreate all project again.

So, any ideea would be appreciated!

Paul
 
Hello again

Well your second question is a little better but i still don't see an idea,
or a way of tackling you issue here. Just your requirements and 'how do i do
it?'.

To be honest i am not even sure what you are trying to do from your
description i can't understand. When you say images of your objects, are you
referring to an object in the literal sense? Or code sense?

If you want to put images on a form and then allow user to move them about.
Yes that can be done.

You could use a picture box, and allow user to drag it about by capturing
the mouse down event and tracking it along with updating the picture box
location. That would allow user to move it abt.

For selecting catch the click event on the picturebox and have that return
the value you need to identify which is clicked.

I dont know if that helps
 
PokerMan said:
To be honest i am not even sure what you are trying to do from your
description i can't understand. When you say images of your objects, are you
referring to an object in the literal sense? Or code sense?
In my first post I sad that my objects are images in png format. This
objects will be inserted in objects table in SQL database (image field).
Each user could create his own map, using object from database.

Each map could be different and objects have distinct position.

What i don't know is how to display this map.
Suppose admin create maps for users, 3 users , 3 maps.
If one user open application i need to display his map. That involve all
object from map, in right position and right dimension.

I intend to use some serialization,deserialization for objects. I
understant I could serialize map and on deserialization insert in
position for each object image from database.

All i need now is 'the control' where i deserialize the map! There's
allready in VS or I need to create one?

TIA
Paul
 
Er?

"In my first post I sad that my objects are images in png format."

That makes no sense. Are you loading images into a CLASS object? Or are you
referring to an image as an object in its own right? An image is not an
object in a code sense. Its a data stream of bytes if you want to get real
picky. Now if you created some class tructure you load it into, then it
becomes an object of that class.

When yuo say map, you mean a literal map? A visual one people can see? Or
some kind of class mapping to access these images?

I am sorry your being way too vague and unclear and seem to have your
terminology mixed up. I can't help maybe someone else can, good luck.
 

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

Back
Top