示例#1
0
        /// <summary>
        /// 坐标转换
        /// </summary>
        /// <param name="trans"></param>
        /// <returns></returns>
        public bool Transform(ICoordTransformer trans)
        {
            XYZ topRight   = new XYZ(this.MaxHorizontal, this.MaxVertical, 0);
            XYZ leftBottom = new XYZ(this.MinHorizontal, this.MinVertical, 0);

            topRight   = trans.Trans(topRight);
            leftBottom = trans.Trans(leftBottom);

            this.MaxHorizontal = topRight[0];
            this.MaxVertical   = topRight[1];
            this.MinHorizontal = leftBottom[0];
            this.MinVertical   = leftBottom[1];

            return(true);
        }