example with GdiImageLayer

Topics: Italiano
May 12, 2015 at 9:34 AM
hello,
How can I set the georeferencing data of image loaded with GdiImageLayer?

I load the image in this method:
Layer lay = new  SharpMap.Layers.GdiImageLayer(@"C:\Users\maurizio.petrini\Documents\labico\newtask\my_map.bmp");

//here I must geo referencing the image.

mapBox1.Map.BackgroundLayer.Add(lay);
thanks
Coordinator
May 12, 2015 at 11:11 AM
You need to create a worldfile for your bitmap/image.
The extension must be either wld or bpw.
May 12, 2015 at 1:28 PM
Thanks