Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf11aea

Browse files
committed
Remove Image class. Replace with resample func
1 parent f2cccf8 commit cf11aea

6 files changed

Lines changed: 1274 additions & 1184 deletions

File tree

extern/agg24-svn/include/agg_span_image_filter_gray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ namespace agg
490490
fg_ptr = (const value_type*)base_type::source().next_y();
491491
}
492492

493-
fg >>= image_filter_shift;
493+
fg = color_type::downshift(fg, image_filter_shift);
494494
if(fg < 0) fg = 0;
495495
if(fg > color_type::full_value()) fg = color_type::full_value();
496496
span->v = (value_type)fg;

setupext.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_base_dirs():
177177
return os.environ.get('MPLBASEDIRLIST').split(os.pathsep)
178178

179179
win_bases = ['win32_static', ]
180-
# on conda windows, we also add the <installdir>\Library of the local interperter,
180+
# on conda windows, we also add the <installdir>\Library of the local interpreter,
181181
# as conda installs libs/includes there
182182
if os.getenv('CONDA_DEFAULT_ENV'):
183183
win_bases.append(os.path.join(os.getenv('CONDA_DEFAULT_ENV'), "Library"))
@@ -1268,11 +1268,13 @@ def get_extension(self):
12681268
sources = [
12691269
'src/_image.cpp',
12701270
'src/mplutils.cpp',
1271-
'src/_image_wrapper.cpp'
1271+
'src/_image_wrapper.cpp',
1272+
'src/py_converters.cpp'
12721273
]
12731274
ext = make_extension('matplotlib._image', sources)
12741275
Numpy().add_flags(ext)
12751276
LibAgg().add_flags(ext)
1277+
12761278
return ext
12771279

12781280

0 commit comments

Comments
 (0)