break;
}
case ExchangeChannelOp:
+ {
+ PixelChannelMap
+ channel_map;
+
+ i=ParsePixelChannelOption(token);
+ if (i < 0)
+ {
+ (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
+ "UnrecognizedChannelType","`%s'",token);
+ destination_image=DestroyImageList(destination_image);
+ return(destination_image);
+ }
+ destination_channel=(PixelChannel) i;
+ if ((source_channel >= GetPixelChannels(image)) ||
+ (destination_channel >= GetPixelChannels(image)))
+ {
+ (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
+ "NoSuchImageChannel","`%s'",token);
+ destination_image=DestroyImageList(destination_image);
+ return(destination_image);
+ }
+ channel_map=destination_image->channel_map[destination_channel];
+ destination_image->channel_map[destination_channel]=
+ destination_image->channel_map[source_channel];
+ destination_image->channel_map[source_channel]=channel_map;
+ break;
+ }
case TransferChannelOp:
{
i=ParsePixelChannelOption(token);
y;
if (image->alpha_trait != BlendPixelTrait)
- ThrowWriterException(CoderError,"ImageDoesNotHaveAAlphaChannel");
+ ThrowWriterException(CoderError,"ImageDoesNotHaveAnAlphaChannel");
matte_image=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
if (matte_image == (Image *) NULL)
return(MagickFalse);
<message name="ImageDoesNotHaveAClipMask">
image does not have a clip mask
</message>
- <message name="ImageDoesNotHaveAAlphaChannel">
- image does not have a alpha channel
+ <message name="ImageDoesNotHaveAnAlphaChannel">
+ image does not have an alpha channel
</message>
<message name="ImageDoesNotHaveAThumbnail">
image does not have a EXIF thumbnail
<message name="NoSuchImage">
no such image
</message>
+ <message name="NoSuchImageChannel">
+ no such image channel
+ </message>
<message name="NoSuchOption">
no such option
</message>
<message name="ImageDoesNotHaveAThumbnail">
image sans vignette EXIF
</message>
- <message name="ImageDoesNotHaveAAlphaChannel">
+ <message name="ImageDoesNotHaveAnAlphaChannel">
l'image n'a pas de canal de transparence
</message>
<message name="ImageIsNotTiled">
<message name="NoSuchImage">
image inconnue
</message>
+ <message name="NoSuchImageChannel">
+ image channel inconnue
+ </message>
<message name="NoSuchOption">
option inconnue
</message>