Exemplo n.º 1
0
 public void ImageFilterAdd()
 {
     SdlGfx.SDL_imageFilterAdd(src1, src2, dest, src1.Length);
     //Console.WriteLine("result: " + result.ToString());
     //Console.WriteLine(
     //	"dest: " + dest[0].ToString() +
     //	", " + dest[1].ToString() + ", " + dest[2].ToString() +
     //	", " + dest[3].ToString());
     Assert.AreEqual(src1[0] + src2[0], dest[0]);
     Assert.AreEqual(src1[1] + src2[1], dest[1]);
     Assert.AreEqual(src1[2] + src2[2], dest[2]);
     Assert.AreEqual(src1[3] + src2[3], dest[3]);
 }