Esempio n. 1
0
 public void GetSetXandY()
 {
     var offset = new Offset(0, 0);
       offset.X = 13;
       offset.Y = 14;
       Assert.AreEqual(13, offset.X);
       Assert.AreEqual(14, offset.Y);
 }
Esempio n. 2
0
 public void Translate(Offset offset)
 {
     Translate(offset.X, offset.Y);
 }
Esempio n. 3
0
 public void Resize(Dimensions dimensions, Offset offset)
 {
     Resize(dimensions.Width, dimensions.Height, offset.X, offset.Y);
 }
Esempio n. 4
0
 public void Crop(Dimensions dimensions, Offset offset)
 {
     Crop(dimensions.Width, dimensions.Height, offset.X, offset.Y);
 }
Esempio n. 5
0
 public void Constructor()
 {
     var offset = new Offset(13, 14);
       Assert.AreEqual(13, offset.X);
       Assert.AreEqual(14, offset.Y);
 }
Esempio n. 6
0
 public void CombineMasks(Channel channel, ChannelOps operation,
     Offset offset)
 {
     CombineMasks(channel, operation, offset.X, offset.Y);
 }
Esempio n. 7
0
 public void Offset(bool wrapAround, OffsetType fillType, Offset offset)
 {
     Offset(wrapAround, fillType, offset.X, offset.Y);
 }
Esempio n. 8
0
        public void SetOffsets()
        {
            var layer = new Layer(_image, "test", ImageType.Rgb);
              _image.InsertLayer(layer, 0);

              var offset = new Offset(13, 14);

              layer.Offsets = offset;
              Assert.AreEqual(offset, layer.Offsets);
        }