public void Constructor() { WritableImage image = new WritableImage(gisImagePath); OutputRaster <Erdas74Pixel8> raster = new OutputRaster <Erdas74Pixel8>(image); raster.Close(); }
public void Constructor() { ErdasImageFile image = new ErdasImageFile(gisImagePath, RWFlag.Write); OutputRaster <Erdas74Pixel8> raster = new OutputRaster <Erdas74Pixel8>(image); raster.Close(); }
public void Dimensions() { WritableImage image = new WritableImage(gisImagePath); OutputRaster <Erdas74Pixel8> raster = new OutputRaster <Erdas74Pixel8>(image); Assert.AreEqual(60, raster.Dimensions.Rows); Assert.AreEqual(40, raster.Dimensions.Columns); raster.Close(); }
public void Dimensions() { ErdasImageFile image = new ErdasImageFile(gisImagePath, RWFlag.Write); OutputRaster <Erdas74Pixel8> raster = new OutputRaster <Erdas74Pixel8>(image); Assert.AreEqual(60, raster.Dimensions.Rows); Assert.AreEqual(40, raster.Dimensions.Columns); raster.Close(); }
public void Metadata() { WritableImage image = new WritableImage(gisImagePath); OutputRaster <Erdas74Pixel8> raster = new OutputRaster <Erdas74Pixel8>(image); double data = 0.0; Assert.AreEqual(false, raster.Metadata.TryGetValue <double>("Anything", ref data)); raster.Close(); }
public void WritePixels() { WritableImage image = new WritableImage(gisImagePath); OutputRaster <Erdas74Pixel8> raster = new OutputRaster <Erdas74Pixel8>(image); Erdas74Pixel8 pixel8 = new Erdas74Pixel8(); int totPixels = raster.Dimensions.Rows * raster.Dimensions.Columns; for (int i = 0; i < totPixels; i++) { raster.WritePixel(pixel8); } raster.Close(); }