read_info=DestroyImageInfo(read_info);
if (image == (Image *) NULL)
return((Image *) NULL);
- (void) SetImageAlpha(image,(Quantum) TransparentAlpha,exception);
(void) CopyMagickString(image->filename,image_info->filename,MaxTextExtent);
icc_color=MagickFalse;
if (LocaleCompare(colorname,"icc") == 0)
image=DestroyImage(image);
return((Image *) NULL);
}
+ if (stop_color.alpha_trait != UndefinedPixelTrait)
+ image->alpha_trait=stop_color.alpha_trait;
status=GradientImage(image,LocaleCompare(image_info->magick,"GRADIENT") == 0 ?
LinearGradient : RadialGradient,PadSpread,&start_color,&stop_color,
exception);
image=DestroyImageList(image);
return((Image *) NULL);
}
- if ((start_color.alpha_trait == UndefinedPixelTrait) &&
- (stop_color.alpha_trait == UndefinedPixelTrait))
- (void) SetImageAlphaChannel(image,DeactivateAlphaChannel,exception);
return(GetFirstImageInList(image));
}
\f