Mapping objects in a room

A

Atul Thombre

Hello,

I am not sure if this is the right forum for this question or not. If not,
please ignore.


I am developing an application in C# that requires me to display a map of
the objects present in a room with proper locations [X, Y coordinates]. The
objects will be tiny images [either jpg or gif]. Is there a mapping software
component that will help me do this? I am new to C# and not familiar with
the graphics routines. Also, Internet search showed zillions of results for
GPS mapping, which is not useful.

Any help is appreciated, thanks.

Atul.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Atul Thombre said:
Hello,

I am not sure if this is the right forum for this question or not. If not,
please ignore.


I am developing an application in C# that requires me to display a map of
the objects present in a room with proper locations [X, Y coordinates].
The objects will be tiny images [either jpg or gif]. Is there a mapping
software component that will help me do this? I am new to C# and not
familiar with the graphics routines. Also, Internet search showed zillions
of results for GPS mapping, which is not useful.

Not that I know of.
You better google a little more, with something more especific.
 
C

clintonG

Autodesk has a mapping application built from AutoCAD which they have
released as open-source. Autodesk is also now supporting .NET in most of
their products like Revit (where the big money is headed). While Autodesk is
an evil vendor there is still something to be said for the APIs in their
products which support .NET.

// for example
news://autodesk.mapguide.developer
news://autodesk.revit.api
news://autodesk.autocad.customization.dotnet
 
B

Bart

Hi Atul.

I guess you want to start with GDI+....I am sure you find good examples to
display items like bmp's, jpg's, lines, squares etc. on a form or print
them.

Mayby this link is usefull:

http://www.codeproject.com/books/1861004990.asp

I am taking the first steps meyself into C# so this is all the help I can
you.

Bart
 
R

Robbe Morris - [MVP] C#

This may not be the "best" way but here is "a" way to accomplish this.
I don't spend my days writing GDI+ drawing controls...

The link below is to a GDI+ control that draws hierarchies in a
couple of different formats. The jist is that you write some
set of methods that determines where you should draw the image
and store the x, y, height, and width of the image and where
it should be drawn on the class properties you create for them.
Keep a data class object in a collection for each item you wish
to draw.

Then, you run the collection of things to draw through a drawing
engine. Afterwards, if you retain the data that was used to draw the map,
you can iterate through the collection of data classes, check the
mouse x, y, height, and width boundries when the user clicks
the image.

If you need to move the item, you simply recreate the data collection
with new images and locations. Then, redraw the image.

http://www.eggheadcafe.com/articles/draw_tree_with_gdi_plus.asp
 

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