The saga continues although this is more of a best practices. I have multiple vehicles. Each vehicle is made up of several shapes. I need to position and rotate these vehicles over an image map overtime. So in my paint function I get the overlays get the shapes from the overlays move them then the LAST THING I DO is refresh. But this seems wasteful. I am repainting the entire screen to handle some moving vehicles. Is there a way to minimize the redraw or is this the best way? This is just part of making this very efficent.
Thanks Bob
void Paint()
{ ........ skip some business logic .
InMemoryFeatureLayer VehicleOverlay = (InMemoryFeatureLayer)staticOverlay.Layers[index]; int cnt = VehicleOverlay.InternalFeatures.Count;String desiredId;""; false;// loop through the shapes to get the center
// point used for rotation.
{
for(int zz = 0; zz < cnt; zz++)BaseShape bs = VehicleOverlay.InternalFeatures[zz].GetShape();
......
....
bs.Rotate(CenterPoint, rotate );
bs.TranslateByOffset(VP.deltax, -VP.deltay);
VehicleOverlay.EditTools.Update(bs);
}
VehicleOverlay.EditTools.CommitTransaction();
VehicleOverlay.Close();
winformsMap1.Refresh(winformsMap1.Overlays[
}"VehicleOverlay"]);
VehicleOverlay.Open();
VehicleOverlay.EditTools.BeginTransaction();
desiredId =
used =