Skip to content

Commit 77aef99

Browse files
committed
Fix interpolation so it wraps rather than clips.
svn path=/branches/transforms/; revision=4595
1 parent aa866ed commit 77aef99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/_image.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,11 @@ Image::resize(const Py::Tuple& args, const Py::Dict& kwargs) {
392392
agg::conv_transform<agg::path_storage> imageBox(path, srcMatrix);
393393
ras.add_path(imageBox);
394394

395-
typedef agg::image_accessor_clip<pixfmt> img_accessor_type;
395+
typedef agg::wrap_mode_reflect reflect_type;
396+
typedef agg::image_accessor_wrap<pixfmt, reflect_type, reflect_type> img_accessor_type;
396397

397398
pixfmt pixfmtin(*rbufIn);
398-
img_accessor_type ia(pixfmtin, background);
399+
img_accessor_type ia(pixfmtin);
399400
switch(interpolation)
400401
{
401402

0 commit comments

Comments
 (0)