Exemple #1
0
        /// <summary>
        ///转换到新的
        /// </summary>
        /// <param name="old"></param>
        /// <returns></returns>
        public Point GetNewPoint(XY old)
        {
            var newX = XConverter.GetNew(old.X);
            var newY = YConverter.GetNew(old.Y);

            return(new Point((int)Math.Round(newX), (int)Math.Round(newY)));
        }
Exemple #2
0
        /// <summary>
        ///转换到新的
        /// </summary>
        /// <param name="old"></param>
        /// <returns></returns>
        public XY GetNew(XY old)
        {
            var newX = XConverter.GetNew(old.X);
            var newY = YConverter.GetNew(old.Y);

            return(new XY(newX, newY));
        }
Exemple #3
0
        /// <summary>
        /// 获取新的
        /// </summary>
        /// <param name="contentBoxUserCoord"></param>
        /// <returns></returns>
        public Envelope GetNew(Envelope contentBoxUserCoord)
        {
            var MinX = XConverter.GetNew(contentBoxUserCoord.MinX);
            var MaxX = XConverter.GetNew(contentBoxUserCoord.MaxX);
            var MinY = YConverter.GetNew(contentBoxUserCoord.MinY);
            var MaxY = YConverter.GetNew(contentBoxUserCoord.MaxY);

            return(new Envelope(MinX, MinY, MaxX, MaxY));
        }