public void TestCrazyFilter()
        {
            Bitmap temp           = new Bitmap(ResourceTestImages.original_for_filters);
            Bitmap expectedResult = new Bitmap(ResourceTestImages.crazy_filter);

            temp = ImageFilters.ApplyFilterSwapDivide(new Bitmap(temp), 1, 1, 2, 1);
            Bitmap actualResult = ImageFilters.ApplyFilterSwap(new Bitmap(temp));

            Assert.IsTrue(UtilImageComparison.CompareImageTheSame(actualResult, expectedResult, 0.02), "The images did not match.");
        }
예제 #2
0
 public override Bitmap Apply(Bitmap bitmap)
 {
     return(ImageFilters.ApplyFilterSwap(new Bitmap(bitmap)));
 }