private void testToolStripMenuItem_Click(object sender, EventArgs e) { IRasterLayer pRasterLayer = (IRasterLayer)axMapControl1.get_Layer(0); IRasterStretchColorRampRenderer pRasterStretchColorRampRenderer = (IRasterStorRampRenderer)pRasterLayer.Renderer; IRasterStretch2 pRasterStretch = (IRasterStretch2)pRasterStretchColorRampRenderer; IRasterStretchMinMax pRasterStretchMinMax = (IRasterStretchMinMax)pRasterStrrRampRenderer; pRasterStretch.StretchStatsType = esriRasterStretchStatsTypeEnum.esriRasterSats_Dataset pRasterStretch.StretchType = esriRasterStretchTypesEnum.esriRasterStretch_Stviations; //標準偏差 pRasterStretchColorRampRenderer.LabelHigh = "高 : " + pRasterStretchMinMax.Sx.ToString(); pRasterStretchColorRampRenderer.LabelLow = "低 : " + pRasterStretchMinMax.St.ToString(); axMapControl1.Refresh(); }
ラスター レイヤーでストレッチ分類の凡例を設定する方法
2016/9/1 (木)