*canvas;
(void) SetPixelChannelMask(destination_image,channel_mask);
- if ((channel_op == ExtractChannelOp) && (channels == 1))
- (void) SetImageColorspace(destination_image,GRAYColorspace,exception);
canvas=CloneImage(source_image,0,0,MagickTrue,exception);
if (canvas == (Image *) NULL)
{
break;
}
channel_mask=(ChannelType) (channel_mask | ParseChannelOption(token));
- if (((channels >= 1) || (destination_channel >= 1)) &&
- (IsGrayColorspace(destination_image->colorspace) != MagickFalse))
- (void) SetImageColorspace(destination_image,sRGBColorspace,exception);
GetNextToken(p,&p,MagickPathExtent,token);
break;
}
break;
}
(void) SetPixelChannelMask(destination_image,channel_mask);
- if ((channel_op == ExtractChannelOp) && (channels == 1))
- (void) SetImageColorspace(destination_image,GRAYColorspace,exception);
return(GetFirstImageInList(destination_image));
}
\f