private static float GetPushPinOffsetX( BingPushpinMetadata pushPinMetadata, double scaleFactor, Image pushPinImage) { var pushPinOffsetX = (float)((pushPinMetadata.Anchor.X * scaleFactor) - (pushPinImage.Width / 2)); return pushPinOffsetX; }
private static float GetPushPinOffsetY( BingPushpinMetadata pushPinMetadata, double scaleFactor, Image pushPinImage) { int pushPinImageOffsetY = pushPinImage.Height; var pushPinOffsetY = (float)((pushPinMetadata.Anchor.Y * scaleFactor) - pushPinImageOffsetY); return pushPinOffsetY; }