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