switch (channel_op)
{
case AssignChannelOp:
- {
- destination_channel=(PixelChannel) i;
- pixel=StringToDoubleInterval(token,(double) QuantumRange+1.0);
- GetNextToken(p,&p,MagickPathExtent,token);
- break;
- }
case ExchangeChannelOp:
case TransferChannelOp:
{
- i=ParsePixelChannelOption(token);
- if (i < 0)
+ destination_channel=(PixelChannel) i;
+ if (channel_op == AssignChannelOp)
+ pixel=StringToDoubleInterval(token,(double) QuantumRange+1.0);
+ else
{
- (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
- "UnrecognizedChannelType","`%s'",token);
- destination_image=DestroyImageList(destination_image);
- return(destination_image);
+ 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;
switch (destination_channel)
{
case RedPixelChannel:
case MetaPixelChannel:
default:
{
- (void) SetPixelMetaChannels(destination_image,(size_t) (i-
- GetPixelChannels(destination_image)+1),exception);
+ (void) SetPixelMetaChannels(destination_image,(size_t) (
+ destination_channel-GetPixelChannels(destination_image)+1),
+ exception);
break;
}
}
{
case UndefinedColorspace:
case sRGBColorspace:
- {
+ {
if (GetImageListLength(image) > 3)
combine_image->alpha_trait=BlendPixelTrait;
break;
break;
}
case CMYKColorspace:
- {
+ {
if (GetImageListLength(image) > 4)
combine_image->alpha_trait=BlendPixelTrait;
break;
{
double
gamma;
-
+
register ssize_t
i;
-
+
if (GetPixelWriteMask(image,q) == 0)
{
q+=GetPixelChannels(image);
for (x=0; x < (ssize_t) image->columns; x++)
{
double
- gamma,
+ gamma,
Sa;
register ssize_t