/*
Draw a gradient on the image.
*/
- if ((start_color->matte == MagickFalse) && (stop_color->matte == MagickFalse))
- image->matte=MagickFalse;
(void) SetImageColorspace(image,start_color->colorspace,exception);
status=DrawGradientImage(image,draw_info,exception);
draw_info=DestroyDrawInfo(draw_info);
- if ((start_color->matte == MagickFalse) && (stop_color->matte == MagickFalse))
- image->matte=MagickFalse;
return(status);
}
\f
image=DestroyImageList(image);
return((Image *) NULL);
}
- if (IssRGBColorspace(image->colorspace) != MagickFalse)
+ if (IssRGBColorspace(start_color->colorspace) != MagickFalse)
(void) SetImageColorspace(image,RGBColorspace,exception);
+ else
+ (void) SetImageColorspace(image,start_color->colorspace,exception);
return(GetFirstImageInList(image));
}
\f