Hi,

The README.txt of the PythonMagick source code contains the following
code example:

def subImage(img1, img2):
    'subtract (img1 - img2)'
    size1 = "%sx%s" % (img1.columns(), img1.rows())
    size2 = "%sx%s" % (img2.columns(), img2.rows())
    if size1 != size2:
        print 'image1 and image2 are different sizes'
        return None
    img2.composite(img1, 0, 0,
PythonMagick.CompositeOperator.MinusCompositeOp)
    return img2

But the current version of PythonMagick doesn't have
PythonMagick.CompositeOperator:

>>> import PythonMagick
>>> import PythonMagick.CompositeOperator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named CompositeOperator
>>>

I can't find any of the Enumerations in PythonMagick. Without these,
many of the functions can not be used. Where do I find the
CompositeOperator class? I can't find it in the source code,
strangely.

-- 
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to