Select to view content in your preferred language

How can i add a jpg image to a mapcontrol background in arcgis engine?

2607
4
10-29-2010 05:43 AM
joseangulo
Emerging Contributor
I have been trying to work around a way to add a jpg image "aerial photo" to a mapcontrol background without success. Please can anyone help with some example on how to do this.
I'm working with arcgis engine in .net.
0 Kudos
4 Replies
RobertBerger
Occasional Contributor
Greetings,

I'm not sure what you mean with map-control background, but this is how you access a dataset in ArcGIS through code.
First you'll need to load the data. You can go through the raster dataset (help) or through the raster layer (help). You can also load the raster right into the layer I believe.
Then you add the layer into ArcMap like any other layer.
Is that what you're looking for?

Robert
0 Kudos
joseangulo
Emerging Contributor
Thanks Robert, the links you provide helpme a lot, but still i need to send to the back the raster layer, so i can see the other layers over it. Any clue on how to move the raster layer to the bottom?
0 Kudos
RobertBerger
Occasional Contributor
Hi,

It seems to me that you can set this through the map. You can insert layers at specific positions, so you'd have to figure out where you want to add the layer.
Help for IMapLayers.InsertLayer
Help for IMapLayer2 interface
Lastly help for the Map coclass

Robert
0 Kudos
mohamedkenzi
Emerging Contributor
Hi,

You need to Turn On the "Enable Layer Drag and Drop" check box  in the Proprities Dialog of your AxTOCControl

Right Click on AxTOCControl > Proprities
Check Enable Layer Drag and Drop
OK
Drag and drop your image to Botom of your TOC

It should works
0 Kudos