ArcEngine 清除影像黑边

通常许多的影像有黑边,也就是value=0。通过以下代码可以清除Valu=0的值。


              IRasterLayer pRasterLayer = new RasterLayerClass(); 
               //strFileFullName 输入文件
                pRasterLayer.CreateFromFilePath(strFileFullName);
                IRasterProps pRstProps = pRasterLayer.Raster as  IRasterProps;
                pRstProps.NoDataValue = 0;

转载自:https://blog.csdn.net/suwenjiang/article/details/17918977

You may also like...