Beispiel #1
0
 // gets scaled bounds taking into account map camera position
 public RectangleGraphic GetCalibratedScaledBounds()
 {
     if (map != null)
     {
         RectangleGraphic scaledBounds = GetScaledBounds();
         return(new RectangleGraphic(
                    scaledBounds.GetX1().Round() - map.GetCamera().X.Round(),
                    scaledBounds.GetY1().Round() - map.GetCamera().Y.Round(),
                    scaledBounds.GetScaledWidth(),
                    scaledBounds.GetScaledHeight()
                    ));
     }
     else
     {
         return(GetScaledBounds());
     }
 }
Beispiel #2
0
 public float GetScaledBoundsY2()
 {
     return(GetScaledBoundsY1() + bounds.GetScaledHeight());
 }