}
}
+static void NegateCMYK(Image *image,ExceptionInfo *exception)
+{
+ ChannelType
+ channel_mask;
+
+ channel_mask=SetImageChannelMask(image,(ChannelType)(AllChannels &~
+ AlphaChannel));
+ NegateImage(image,MagickFalse,exception);
+ (void) SetImageChannelMask(image,channel_mask);
+}
+
static MagickBooleanType ParseImageResourceBlocks(Image *image,
const unsigned char *blocks,size_t length,
MagickBooleanType *has_merged_image,ExceptionInfo *exception)
{
case -1:
{
- SetPixelOpacity(image,pixel,q);
+ SetPixelAlpha(image,pixel,q);
break;
}
case 0:
case 1:
{
if (image->storage_class == PseudoClass)
- SetPixelOpacity(image,pixel,q);
+ SetPixelAlpha(image,pixel,q);
else
SetPixelGreen(image,pixel,q);
break;
case 2:
{
if (image->storage_class == PseudoClass)
- SetPixelOpacity(image,pixel,q);
+ SetPixelAlpha(image,pixel,q);
else
SetPixelBlue(image,pixel,q);
break;
SetPixelBlack(image,pixel,q);
else
if (image->alpha_trait != UndefinedPixelTrait)
- SetPixelOpacity(image,pixel,q);
+ SetPixelAlpha(image,pixel,q);
break;
}
case 4:
(channels > 3))
break;
if (image->alpha_trait != UndefinedPixelTrait)
- SetPixelOpacity(image,pixel,q);
+ SetPixelAlpha(image,pixel,q);
break;
}
default:
layer_info->image->compression=ConvertPSDCompression(compression);
if (layer_info->channel_info[j].type == -1)
layer_info->image->alpha_trait=BlendPixelTrait;
+
status=ReadPSDChannel(layer_info->image,psd_info,layer_info,j,
compression,exception);
status=CorrectPSDOpacity(layer_info,exception);
if (status != MagickFalse && layer_info->image->colorspace == CMYKColorspace)
- (void) NegateImage(layer_info->image,MagickFalse,exception);
+ (void) NegateCMYK(layer_info->image,exception);
return(status);
}
}
if (image->colorspace == CMYKColorspace)
- (void) NegateImage(image,MagickFalse,exception);
+ (void) NegateCMYK(image,exception);
if (offsets != (MagickOffsetType *) NULL)
offsets=(MagickOffsetType *) RelinquishMagickMemory(offsets);
else
{
if (next_image->colorspace == CMYKColorspace)
- (void) NegateImage(next_image,MagickFalse,exception);
+ (void) NegateCMYK(next_image,exception);
if (next_image->compression == RLECompression)
{
/*
MagickFalse,exception);
(void) SetImageProgress(image,SaveImagesTag,5,6);
if (next_image->colorspace == CMYKColorspace)
- (void) NegateImage(next_image,MagickFalse,exception);
+ (void) NegateCMYK(next_image,exception);
}
if (next_image->compression == RLECompression)
compact_pixels=(unsigned char *) RelinquishMagickMemory(compact_pixels);