Skip to content

Commit

Permalink
Fixed check because alphaColor has been deprecated (Fixes #9).
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Lemstra committed May 27, 2017
1 parent 98b48dc commit ab46a4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pythonmagick_src/_Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ void Export_pyste_src_Image()
.def("alpha", (void (Magick::Image::*)(const bool) )&Magick::Image::alpha)
.def("alpha", (bool (Magick::Image::*)() const)&Magick::Image::alpha)
#endif
#if MagickLibVersion < 0x700
.def("matteColor", (void (Magick::Image::*)(const Magick::Color&) )&Magick::Image::matteColor)
.def("matteColor", (Magick::Color (Magick::Image::*)() const)&Magick::Image::matteColor)
#else
#if (MagickLibVersion >= 0x700) && (MagickLibVersion < 0x705)
.def("alphaColor", (void (Magick::Image::*)(const Magick::Color&) )&Magick::Image::alphaColor)
.def("alphaColor", (Magick::Color (Magick::Image::*)() const)&Magick::Image::alphaColor)
#else
.def("matteColor", (void (Magick::Image::*)(const Magick::Color&) )&Magick::Image::matteColor)
.def("matteColor", (Magick::Color (Magick::Image::*)() const)&Magick::Image::matteColor)
#endif
.def("meanErrorPerPixel", &Magick::Image::meanErrorPerPixel)
.def("modulusDepth", (void (Magick::Image::*)(const size_t) )&Magick::Image::modulusDepth)
Expand Down

0 comments on commit ab46a4c

Please sign in to comment.