public void LowerLayer() { var layer1 = new Layer(_image, "test1", ImageType.Rgb); _image.InsertLayer(layer1, 0); var layer2 = new Layer(_image, "test2", ImageType.Rgb); _image.InsertLayer(layer2, 0); Assert.AreEqual(1, layer1.Position); Assert.AreEqual(0, layer2.Position); _image.LowerItem(layer2); Assert.AreEqual(0, layer1.Position); Assert.AreEqual(1, layer2.Position); }
public void LowerVectors() { var first = new Vectors(_image, "firstVector"); var second = new Vectors(_image, "secondVector"); _image.AddVectors(first, -1); _image.AddVectors(second, -1); _image.LowerItem(second); Assert.AreEqual(0, _image.GetItemPosition(first)); Assert.AreEqual(1, _image.GetItemPosition(second)); }
public void Lower() { Image.LowerItem(this); }