有若干不同图幅的JPG格式影像,为接边方便有重叠,现需要吧重复的外围部分裁剪掉,如何处理,谁做过的能不能给点代码或思路提示,谢过。
            

        }
        public IPolygon CreatePolygon(double StartX, double StartY, double dx, double dy)
        {
            IPointCollection4 pPntsCol;
            IPoint pLeftBottomPoint, pLeftTopPoint, pRightTopPoint, pRightBottomPoint;
            pPntsCol = new PolygonClass();

            pLeftBottomPoint = new PointClass();
            pLeftBottomPoint.X = StartX;
            pLeftBottomPoint.Y = StartY;
            object missing = Type.Missing;
            pPntsCol.AddPoint(pLeftBottomPoint, ref missing, ref missing);

            pLeftTopPoint = new PointClass();
            pLeftTopPoint.X = StartX;
            pLeftTopPoint.Y = StartY + dy;
            pPntsCol.AddPoint(pLeftTopPoint, ref missing, ref missing);

            pRightTopPoint = new PointClass();
            pRightTopPoint.X = StartX + dx;
            pRightTopPoint.Y = StartY + dy;
            pPntsCol.AddPoint(pRightTopPoint, ref missing, ref missing);


            pRightBottomPoint = new PointClass();
            pRightBottomPoint.X = StartX + dx;
            pRightBottomPoint.Y = StartY;
            pPntsCol.AddPoint(pRightBottomPoint, ref missing, ref missing);

            IPolygon4 pPoly = pPntsCol as IPolygon4;
            pPoly.Close();
            
            IMap pMap = axMapControl1.Map;
            ISpatialReference pSRMap = pMap.SpatialReference;// as ISpatialReference;
            pPoly.SpatialReference = pSRMap;
            
            IPolygon pReturnPolygon = pPoly as IPolygon;
            return pReturnPolygon;

        }

相关文章: