Ejemplo n.º 1
0
        private void PaintLayer(Graphics g, ILayer layer )
        {
            if (layer != null)
            {
                Coordinate leftBottom = new Coordinate(0, 0);
                Coordinate rightTop = new Coordinate(0, 0);

                this.getBoundingBox(ref leftBottom, ref rightTop);

                double halfWindowWidth = this.Width / 2;
                double halfWindowHeight = this.Height / 2;

                layer.Zoom = this.ZoomValue;
                layer.CenterCoord = centerCoord;
                layer.LeftBottom = leftBottom;
                layer.RightTop = rightTop;
                layer.HalfWindowHeight = halfWindowHeight;
                layer.HalfWindowWidth = halfWindowWidth;
                layer.StartDrawingPoint = startDrawingPoint;

                layer.Paint(g);
            }
        }