Skip to content

Commit

Permalink
Remove Image class. Replace with resample func
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Feb 17, 2016
1 parent f2cccf8 commit cf11aea
Show file tree
Hide file tree
Showing 6 changed files with 1,274 additions and 1,184 deletions.
2 changes: 1 addition & 1 deletion extern/agg24-svn/include/agg_span_image_filter_gray.h
Expand Up @@ -490,7 +490,7 @@ namespace agg
fg_ptr = (const value_type*)base_type::source().next_y();
}

fg >>= image_filter_shift;
fg = color_type::downshift(fg, image_filter_shift);
if(fg < 0) fg = 0;
if(fg > color_type::full_value()) fg = color_type::full_value();
span->v = (value_type)fg;
Expand Down
6 changes: 4 additions & 2 deletions setupext.py
Expand Up @@ -177,7 +177,7 @@ def get_base_dirs():
return os.environ.get('MPLBASEDIRLIST').split(os.pathsep)

win_bases = ['win32_static', ]
# on conda windows, we also add the <installdir>\Library of the local interperter,
# on conda windows, we also add the <installdir>\Library of the local interpreter,
# as conda installs libs/includes there
if os.getenv('CONDA_DEFAULT_ENV'):
win_bases.append(os.path.join(os.getenv('CONDA_DEFAULT_ENV'), "Library"))
Expand Down Expand Up @@ -1268,11 +1268,13 @@ def get_extension(self):
sources = [
'src/_image.cpp',
'src/mplutils.cpp',
'src/_image_wrapper.cpp'
'src/_image_wrapper.cpp',
'src/py_converters.cpp'
]
ext = make_extension('matplotlib._image', sources)
Numpy().add_flags(ext)
LibAgg().add_flags(ext)

return ext


Expand Down

0 comments on commit cf11aea

Please sign in to comment.