ArcEngine 清除影像黑边

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


IRasterLayer pRasterLayer = new RasterLayerClass(); //strFileFullName 输入文件 pRasterLayer.CreateFromFilePath(strFileFullName); IRasterProps pRstProps = pRasterLayer.Raster as IRasterProps; pRstProps.NoDataValue = 0;
原文地址:https://www.cnblogs.com/myyouthlife/p/2544246.html