private void writePx(MapWinGIS.Grid gr, MapWinGIS.GridDataType grType, GridPixel pix, object val, MapWinGIS.ICallback cback) { switch (grType) { case GridDataType.ShortDataType: short v1 = Convert.ToInt16(val); gr.set_Value(pix.col, pix.row, v1); break; case GridDataType.LongDataType: int v2 = Convert.ToInt32(val); gr.set_Value(pix.col, pix.row, v2); break; case GridDataType.FloatDataType: float v3 = Convert.ToSingle(val); gr.set_Value(pix.col, pix.row, v3); break; case GridDataType.DoubleDataType: double v4 = Convert.ToDouble(val); gr.set_Value(pix.col, pix.row, v4); break; default: reportError("the grid data type " + grType.ToString() + "is not supported.", cback); break; } }
public LineEdge(GridPixel startPoint, GridPixel endPoint) { this.Reset(startPoint.col, startPoint.row, endPoint.col, endPoint.row); }