

@staticmethod
def c_equals(a, b):
    "Raw level version of equality test function for two pixels.\n\n        :param a: a pointer to PixelWand to compare\n        :type a: :class:`ctypes.c_void_p`\n        :param b: a pointer to PixelWand to compare\n        :type b: :class:`ctypes.c_void_p`\n        :returns: ``True`` only if two pixels equal\n        :rtype: :class:`bool`\n\n        .. note::\n\n           It's only for internal use. Don't use it directly.\n           Use ``==`` operator of :class:`Color` instead.\n\n        "
    alpha = library.PixelGetAlpha
    return bool((library.IsPixelWandSimilar(a, b, 0) and (alpha(a) == alpha(b))))

dataset/ETHPy150Open dahlia/wand/wand/color.py Color.c_equals/original