From 0e0c4aa82c653955b45d8a1e7295232f24b46047 Mon Sep 17 00:00:00 2001 From: Alberto Valverde Date: Thu, 12 May 2011 18:09:03 +0000 Subject: [PATCH] integrated test case from #759 --- src/agg/process_raster_symbolizer.cpp | 2 + tests/data/raster/white-alpha.png | Bin 0 -> 150 bytes tests/python_tests/raster_symbolizer_test.py | 38 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100755 tests/data/raster/white-alpha.png diff --git a/src/agg/process_raster_symbolizer.cpp b/src/agg/process_raster_symbolizer.cpp index 84c6a1964..a7468abaf 100644 --- a/src/agg/process_raster_symbolizer.cpp +++ b/src/agg/process_raster_symbolizer.cpp @@ -63,6 +63,8 @@ void agg_renderer::process(raster_symbolizer const& sym, if (sym.get_scaling() == "bilinear8"){ scale_image_bilinear8(target,raster->data_, err_offs_x, err_offs_y); + } else if (sym.get_scaling() == "bilinear_old") { + scale_image_bilinear_old(target,raster->data_, err_offs_x, err_offs_y); } else { scaling_method_e scaling_method = get_scaling_method_by_name(sym.get_scaling()); scale_image_agg(target,raster->data_, (scaling_method_e)scaling_method, scale_factor, err_offs_x, err_offs_y, sym.calculate_filter_factor()); diff --git a/tests/data/raster/white-alpha.png b/tests/data/raster/white-alpha.png new file mode 100755 index 0000000000000000000000000000000000000000..40ed38154757475155501a01c44906c1c4b7de44 GIT binary patch literal 150 zcmeAS@N?(olHy`uVBq!ia0vp^EFjFm1|(O0oL2{=7>k44ofy`glX(f`uqAoByD-cL zL7P`q%YY)B1s;*b3=G`DAk4@xYmNj^kiEpy*OmP?D-SQXX?M#Hd!Ue*r;B3<$Mxht m|NsB5VN*G9q=Aitn}Ok-AM+9^H9uCM3I