超图FAQ: private double MapHeightToLogicHeight(Double mapH, Map map)
{
Double fontHeight = 0;
Point2D pointend = new Point2D(fontHeight, fontHeight);
Point2D pointstart = new Point2D(0, 0);
Point2D logicaPntEnd = new Point2D();
Point2D logicaStart = new Point2D();
if (map != null)
{
logicaPntEnd = map.MapToLogical(pointend);
logicaStart = map.MapToLogical(pointstart);
fontHeight = Math.Abs(logicaPntEnd.Y - logicaStart.Y);
}
return fontHeight;
}
catch (Exception ex)
{
return fontHeight;
MessageBox.Show(ex.ToString());
}
}