Skip to content

Commit 1c7a63c

Browse files
committed
Fix severe slowness with very high image magnification.
svn path=/trunk/matplotlib/; revision=8456
1 parent a0b0080 commit 1c7a63c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_image.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ Image::resize(const Py::Tuple& args, const Py::Dict& kwargs) {
353353
agg::rasterizer_scanline_aa<> ras;
354354
agg::scanline_u8 sl;
355355

356+
ras.clip_box(0, 0, numcols, numrows);
356357

357358
//srcMatrix *= resizingMatrix;
358359
//imageMatrix *= resizingMatrix;

0 commit comments

Comments
 (0)