Revision: 8457
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8457&view=rev
Author:   mdboom
Date:     2010-06-23 14:18:05 +0000 (Wed, 23 Jun 2010)

Log Message:
-----------
Do image clipping of images in doubles rather than ints -- prevents the 
"disappearing image when zooming in too far" problem.

Modified Paths:
--------------
    trunk/matplotlib/src/_image.cpp

Modified: trunk/matplotlib/src/_image.cpp
===================================================================
--- trunk/matplotlib/src/_image.cpp     2010-06-22 19:30:57 UTC (rev 8456)
+++ trunk/matplotlib/src/_image.cpp     2010-06-23 14:18:05 UTC (rev 8457)
@@ -29,6 +29,7 @@
 #include "agg_span_image_filter_rgb.h"
 #include "agg_span_image_filter_rgba.h"
 #include "agg_span_interpolator_linear.h"
+#include "agg_rasterizer_sl_clip.h"
 #include "util/agg_color_conv_rgb8.h"
 #include "_image.h"
 #include "mplutils.h"
@@ -350,7 +351,7 @@
   pixfmt pixf(*rbufOut);
   renderer_base rb(pixf);
   rb.clear(bg);
-  agg::rasterizer_scanline_aa<> ras;
+  agg::rasterizer_scanline_aa<agg::rasterizer_sl_clip_dbl> ras;
   agg::scanline_u8 sl;
 
   ras.clip_box(0, 0, numcols, numrows);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to