GetCoordinates() public method

Gets the coordinate of the image
public GetCoordinates ( double zoom ) : Point
zoom double
return Point
        private void UpdateTile(TileInfo tileInfo)
        {
            if ((tileInfo.Zoom > (this.CurrentZoomLevel + 1))
                || (tileInfo.Zoom < (this.CurrentZoomLevel - 2)))
            {
                // Hide unused images
                this.RemoveImage(tileInfo);
            }

            var zoom = this.CurrentZoomLevel;
            var localZoom = Math.Pow(2, zoom);
            localZoom = Math.Pow(2, tileInfo.Zoom);

            var position = tileInfo.GetCoordinates(localZoom);
            Canvas.SetLeft(
                tileInfo.TileImage,
                (position.X + this.CurrentPosition.X)
                    * this.CurrentZoom * BaseZoom
                    + this.ActualWidth / 2);
            Canvas.SetTop(
                tileInfo.TileImage,
                (position.Y + this.CurrentPosition.Y)
                    * this.CurrentZoom * BaseZoom
                    + this.ActualHeight / 2);
            tileInfo.TileImage.Width = (this.CurrentZoom / localZoom) + 0.5;
            tileInfo.TileImage.Height = (this.CurrentZoom / localZoom) + 0.5;
        }