}
}
if (attribute_flag[11] != 0) /* channel */
- channel=(ChannelType) argument_list[11].integer_reference;
+ {
+ channel=(ChannelType) argument_list[11].integer_reference;
+ SetPixelComponentMap(image,channel);
+ }
/*
Composite two images (normal composition).
*/
flags=ParseGravityGeometry(image,composite_geometry,&geometry,
exception);
if (attribute_flag[8] == 0) /* no rotate */
- CompositeImageChannel(image,channel,compose,composite_image,
- geometry.x,geometry.y);
+ CompositeImage(image,compose,composite_image,geometry.x,geometry.y);
else
{
/*
composite_image->columns)/2;
geometry.y-=(ssize_t) (rotate_image->rows-
composite_image->rows)/2;
- CompositeImageChannel(image,channel,compose,rotate_image,
- geometry.x,geometry.y);
+ CompositeImage(image,compose,rotate_image,geometry.x,geometry.y);
rotate_image=DestroyImage(rotate_image);
}
if (attribute_flag[10] != 0) /* mask */
{
if (attribute_flag[0] != 0)
channel=(ChannelType) argument_list[0].integer_reference;
- EqualizeImageChannel(image,channel);
+ EqualizeImage(image,channel);
break;
}
case 40: /* Gamma */
if (strchr(argument_list[0].string_reference,',') != (char *) NULL)
(void) GammaImage(image,argument_list[0].string_reference);
else
- (void) GammaImageChannel(image,channel,InterpretLocaleValue(
+ (void) GammaImage(image,channel,InterpretLocaleValue(
argument_list[0].string_reference,(char **) NULL));
break;
}
argument_list[0].integer_reference=0;
if (attribute_flag[1] != 0)
channel=(ChannelType) argument_list[1].integer_reference;
- (void) NegateImageChannel(image,channel,
+ (void) NegateImage(image,channel,
argument_list[0].integer_reference != 0 ? MagickTrue : MagickFalse);
break;
}
{
if (attribute_flag[0] != 0)
channel=(ChannelType) argument_list[0].integer_reference;
- NormalizeImageChannel(image,channel);
+ NormalizeImage(image,channel);
break;
}
case 46: /* NumberColors */
argument_list[0].real_reference=argument_list[5].real_reference;
attribute_flag[0]=attribute_flag[5];
}
- (void) LevelImageChannel(image,channel,black_point,white_point,gamma);
+ (void) LevelImage(image,channel,black_point,white_point,gamma);
break;
}
case 74: /* Clip */
if (attribute_flag[4] != 0)
sharpen=argument_list[4].integer_reference != 0 ? MagickTrue :
MagickFalse;
- (void) SigmoidalContrastImageChannel(image,channel,sharpen,
+ (void) SigmoidalContrastImage(image,channel,sharpen,
geometry_info.rho,geometry_info.sigma);
break;
}
white_point=argument_list[2].real_reference;
if (attribute_flag[4] != 0)
channel=(ChannelType) argument_list[4].integer_reference;
- (void) ContrastStretchImageChannel(image,channel,black_point,
+ (void) ContrastStretchImage(image,channel,black_point,
white_point);
break;
}
}
if (attribute_flag[1] != 0)
channel=(ChannelType) argument_list[1].integer_reference;
- (void) ClutImageChannel(image,channel,
+ (void) ClutImage(image,channel,
argument_list[0].image_reference);
break;
}
}
if (attribute_flag[1] != 0)
channel=(ChannelType) argument_list[1].integer_reference;
- (void) HaldClutImageChannel(image,channel,
+ (void) HaldClutImage(image,channel,
argument_list[0].image_reference);
break;
}
{
if (attribute_flag[0] != 0)
channel=(ChannelType) argument_list[0].integer_reference;
- (void) AutoGammaImageChannel(image,channel);
+ (void) AutoGammaImage(image,channel);
break;
}
case 128: /* AutoLevel */
{
if (attribute_flag[0] != 0)
channel=(ChannelType) argument_list[0].integer_reference;
- (void) AutoLevelImageChannel(image,channel);
+ (void) AutoLevelImage(image,channel);
break;
}
case 129: /* LevelColors */
&white_point,exception);
if (attribute_flag[3] != 0)
channel=(ChannelType) argument_list[3].integer_reference;
- (void) LevelColorsImageChannel(image,channel,&black_point,
+ (void) LevelColorsImage(image,channel,&black_point,
&white_point,argument_list[0].integer_reference != 0 ? MagickTrue :
MagickFalse);
break;