Hi
I need to have a bitmap that contains the map and I do not want to use the drawtobitmap method.
I take this code in the pdfextention sample and I get a very nice bitmap of my map.
The issue is that feature labels are missing (they are on the map and not on the bitmap);
what am I doing wrong ?
using (Bitmap b2 = new Bitmap(sr.Width, sr.Height))
{
Collection<SimpleCandidate> labelsInLayers = new Collection<SimpleCandidate>();
GdiPlusGeoCanvas c = new GdiPlusGeoCanvas();
foreach (Layer l in myLayers)
{
c.BeginDrawing(b2, _FullExtent(), theMap.MapUnit);
l.Open()
l.Draw(c, labelsInLayers);
l.Close();
c.EndDrawing();
}
}
Patrick.