%
% The format of the SeparateImages method is:
%
-% MagickBooleanType SeparateImages(const Image *image,
+% Image *SeparateImages(const Image *image,const ChannelType channels,
% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o image: the image.
%
+% o channels: the image channels.
+%
% o exception: return any errors or warnings in this structure.
%
*/
-MagickExport Image *SeparateImages(const Image *image,ExceptionInfo *exception)
+MagickExport Image *SeparateImages(const Image *image,
+ const ChannelType channels,ExceptionInfo *exception)
{
Image
*images,
*ChannelFxImage(const Image *,const char *,ExceptionInfo *),
*CombineImages(const Image *,ExceptionInfo *),
*SeparateImage(const Image *,const ChannelType,ExceptionInfo *),
- *SeparateImages(const Image *,ExceptionInfo *);
+ *SeparateImages(const Image *,const ChannelType,ExceptionInfo *);
extern MagickExport MagickBooleanType
GetImageAlphaChannel(const Image *),
Break channels into separate images.
*/
(void) SyncImageSettings(mogrify_info,*image,exception);
- mogrify_image=SeparateImages(*image,exception);
+ mogrify_image=SeparateImages(*image,image_info->channel,exception);
break;
}
if (LocaleCompare("sepia-tone",option+1) == 0)
/* The "channel" setting has already been set
FUTURE: This probably should be part of SyncImageSettings().
How is it applied to new images?
- */
SetPixelChannelMapMask(_image,_image_info->channel);
+ */
break;
}
if (LocaleCompare("charcoal",option+1) == 0)
{
/* WARNING: This can generate multiple images! */
/* FUTURE - this may be replaced by a "-channel" method */
- new_image=SeparateImages(_image,_exception);
+ new_image=SeparateImages(_image,_image_info->channel,_exception);
break;
}
if (LocaleCompare("sepia-tone",option+1) == 0)