AO的版本为10.2,开发的语言是C#。栅格数据来源IRasterDataset接口。
| 代码如下 | 复制代码 |
IRasterBandCollection pRasterBandCollection = pRasterDatasetasIRasterBandCollection; IRasterBand pRasterBand = pRasterBandCollection.Item(0); IRaster pRaster = (pRasterDatasetasIRasterDataset2).CreateFullRaster(); IRawPixels pRawPixels = pRasterBandasIRawPixels; IRasterProps pRasterProps = pRasterBandasIRasterProps; intdHeight = pRasterProps.Height; intdWidth = pRasterProps.Width; IPnt pntSize =newPntClass(); pntSize.SetCoords(dHeight, dWidth); IPnt pPixelBlockOrigin =newPntClass(); pPixelBlockOrigin.SetCoords(0, 0); IPixelBlock pixelBlock = pRaster.CreatePixelBlock(pntSize); pRawPixels.Read(pPixelBlockOrigin, pixelBlock); System.Array arr = (System.Array)(pixelBlockasIPixelBlock3).get_PixelData(0); for(inti = 0; i < dHeight;i++ ) { for(intj = 0; j < dWidth; j++) { floatnumber = 0; float.TryParse(arr.GetValue(i,j).ToString(),outnumber); } } | |
疯狂医院达什医生中文版(Crazy Hospital)
疯狂医院达什医生最新版是一款医院模拟经营类游戏,逼真的场景画
宝宝庄园官方版
宝宝庄园官方版是一款超级经典好玩的模拟经营类型的手游,这个游
桃源记官方正版
桃源记是一款休闲娱乐类的水墨手绘风格打造的模拟经营手游。玩家
长途巴士模拟器手机版
长途巴士模拟器汉化版是一款十分比真好玩的大巴车模拟驾驶运营类
房东模拟器最新版2024
房东模拟器中文版是一个超级有趣的模拟经营类型的手游,这个游戏