diff --git a/tests/benchmarks/image.cpp b/tests/benchmarks/image.cpp index 15fc4ebaf5..663e1a362e 100644 --- a/tests/benchmarks/image.cpp +++ b/tests/benchmarks/image.cpp @@ -79,6 +79,14 @@ BENCHMARK_FUNC(EnlargeNormal) wxIMAGE_QUALITY_NORMAL).IsOk(); } +BENCHMARK_FUNC(EnlargeBoxAverage) +{ + const wxImage& image = GetTestImage(); + const double factor = Bench::GetNumericParameter(150) / 100.; + return image.Scale(factor*image.GetWidth(), factor*image.GetHeight(), + wxIMAGE_QUALITY_BOX_AVERAGE).IsOk(); +} + BENCHMARK_FUNC(EnlargeHighQuality) { const wxImage& image = GetTestImage(); @@ -95,6 +103,14 @@ BENCHMARK_FUNC(ShrinkNormal) wxIMAGE_QUALITY_NORMAL).IsOk(); } +BENCHMARK_FUNC(ShrinkBoxAverage) +{ + const wxImage& image = GetTestImage(); + const double factor = Bench::GetNumericParameter(50) / 100.; + return image.Scale(factor*image.GetWidth(), factor*image.GetHeight(), + wxIMAGE_QUALITY_BOX_AVERAGE).IsOk(); +} + BENCHMARK_FUNC(ShrinkHighQuality) { const wxImage& image = GetTestImage();