Example #1
0
 public void Angle()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName) {Angle = 0.10};
       Assert.AreEqual(0.10, brush.Angle, 0.000001);
       brush.Delete();
 }
Example #2
0
 public void AspectRatio()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName) {AspectRatio = 2.0};
       Assert.AreEqual(2.0, brush.AspectRatio, 0.000001);
       brush.Delete();
 }
Example #3
0
 public void GetInfo()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName);
       var info = brush.Info;
       Assert.AreEqual(brushName, brush.Name);
       // Assert.AreEqual(0, width);
       // Fix me: insert more Asserts here!
       brush.Delete();
 }
Example #4
0
        public void New()
        {
            string brushName = "Gimp#Brush";

              int count = new BrushList(null).Count;
            #if false
              var brush = new Brush(brushName);
              Assert.AreEqual(brushName, brush.Name);
              Assert.AreEqual(count + 1, new BrushList(null).Count);
              brush.Delete();
              Assert.AreEqual(count, new BrushList(null).Count);
            #endif
        }
Example #5
0
 public Brush(Brush brush)
     : base(gimp_brush_duplicate(brush.Name))
 {
 }
Example #6
0
 public void InvalidSpacing()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName);
       try
     {
       brush.Spacing = -1;
     }
       finally
     {
       brush.Delete();
     }
 }
Example #7
0
 public void Hardness()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName) {Hardness = 0.13};
       Assert.AreEqual(0.13, brush.Hardness, 0.000001);
       brush.Delete();
 }
Example #8
0
 public void Spikes()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName) {Spikes = 13};
       Assert.AreEqual(13, brush.Spikes);
       brush.Delete();
 }
Example #9
0
 public void Shape()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName) {Shape = BrushGeneratedShape.Circle};
       Assert.AreEqual(BrushGeneratedShape.Circle, brush.Shape);
       brush.Delete();
 }
Example #10
0
 public void Rename()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName);
       string newName = "Gimp#Brush2";
       string name = brush.Rename(newName);
       Assert.AreEqual(newName, name);
       Assert.AreEqual(newName, brush.Name);
       brush.Delete();
 }
Example #11
0
 public void Radius()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName) {Radius = 13.0};
       Assert.AreEqual(13.0, brush.Radius, 0.000001);
       brush.Delete();
 }
Example #12
0
 public void IsGenerated()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName);
       Assert.IsTrue(brush.Generated);
       brush.Delete();
 }
Example #13
0
 public void IsEditable()
 {
     string brushName = "Gimp#Brush";
       var brush = new Brush(brushName);
       Assert.IsTrue(brush.Editable);
       brush.Delete();
 }