Revision: 4595
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4595&view=rev
Author:   mdboom
Date:     2007-12-04 12:29:54 -0800 (Tue, 04 Dec 2007)

Log Message:
-----------
Fix interpolation so it wraps rather than clips.

Modified Paths:
--------------
    branches/transforms/src/_image.cpp

Modified: branches/transforms/src/_image.cpp
===================================================================
--- branches/transforms/src/_image.cpp  2007-12-04 20:28:24 UTC (rev 4594)
+++ branches/transforms/src/_image.cpp  2007-12-04 20:29:54 UTC (rev 4595)
@@ -392,10 +392,11 @@
   agg::conv_transform<agg::path_storage> imageBox(path, srcMatrix);
   ras.add_path(imageBox);
 
-  typedef agg::image_accessor_clip<pixfmt> img_accessor_type;
+  typedef agg::wrap_mode_reflect reflect_type;
+  typedef agg::image_accessor_wrap<pixfmt, reflect_type, reflect_type> 
img_accessor_type;
 
   pixfmt pixfmtin(*rbufIn);
-  img_accessor_type ia(pixfmtin, background);
+  img_accessor_type ia(pixfmtin);
   switch(interpolation)
     {
 


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

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to