value=(MagickRealType) p[image->channel_map[AlphaPixelChannel].offset];
alpha=image->alpha_trait == UndefinedPixelTrait ? OpaqueAlpha : value;
beta=q->alpha_trait == UndefinedPixelTrait ? OpaqueAlpha : q->alpha;
+ if (AbsolutePixelValue(alpha-beta) >= MagickEpsilon)
+ return(MagickFalse);
if ((alpha == TransparentOpacity) || (beta == TransparentOpacity))
return(MagickTrue); /* no color component if pixel is transparent */
value=(MagickRealType) p[image->channel_map[RedPixelChannel].offset];
if (AbsolutePixelValue(value-q->black) >= MagickEpsilon)
return(MagickFalse);
}
- if (AbsolutePixelValue(alpha-beta) >= MagickEpsilon)
- return(MagickFalse);
return(MagickTrue);
}
alpha=p->alpha_trait == UndefinedPixelTrait ? OpaqueAlpha : p->alpha;
beta=q->alpha_trait == UndefinedPixelTrait ? OpaqueAlpha : q->alpha;
+ if (AbsolutePixelValue(alpha-beta) >= MagickEpsilon)
+ return(MagickFalse);
if ((alpha == TransparentOpacity) || (beta == TransparentOpacity))
return(MagickTrue); /* no color component if pixel is transparent */
if (AbsolutePixelValue(p->red-q->red) >= MagickEpsilon)
if (AbsolutePixelValue(p->black-q->black) >= MagickEpsilon)
return(MagickFalse);
}
- if (AbsolutePixelValue(alpha-beta) >= MagickEpsilon)
- return(MagickFalse);
return(MagickTrue);
}