shade_image=DestroyImage(shade_image);
return((Image *) NULL);
}
- if (image->colorspace == sRGBColorspace)
- (void) TransformImageColorspace(linear_image,RGBColorspace,exception);
if (SetImageStorageClass(shade_image,DirectClass,exception) == MagickFalse)
{
linear_image=DestroyImage(linear_image);
shade_view=DestroyCacheView(shade_view);
image_view=DestroyCacheView(image_view);
linear_image=DestroyImage(linear_image);
- if (image->colorspace == sRGBColorspace)
- (void) TransformImageColorspace(shade_image,sRGBColorspace,exception);
if (status == MagickFalse)
shade_image=DestroyImage(shade_image);
return(shade_image);
CacheView
*image_view;
- ColorspaceType
- colorspace;
-
MagickBooleanType
status;
/*
Form histogram.
*/
- colorspace=image->colorspace;
- if (colorspace == sRGBColorspace)
- (void) SetImageColorspace(image,RGBColorspace,exception);
status=MagickTrue;
(void) ResetMagickMemory(histogram,0,(MaxMap+1)*GetPixelChannels(image)*
sizeof(*histogram));
status=MagickFalse;
}
}
- if (colorspace == sRGBColorspace)
- (void) SetImageColorspace(image,sRGBColorspace,exception);
image_view=DestroyCacheView(image_view);
stretch_map=(double *) RelinquishMagickMemory(stretch_map);
white=(double *) RelinquishMagickMemory(white);
return(MagickFalse);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
(void) TransformImageColorspace(image,RGBColorspace,exception);
- if ((image->alpha_trait != BlendPixelTrait) && (draw_info->fill.alpha_trait == BlendPixelTrait))
+ if ((image->alpha_trait != BlendPixelTrait) &&
+ (draw_info->fill.alpha_trait == BlendPixelTrait))
(void) SetImageAlpha(image,OpaqueAlpha,exception);
/*
Set floodfill state.
linear_image=DestroyImage(paint_image);
return((Image *) NULL);
}
- if (image->colorspace == sRGBColorspace)
- (void) TransformImageColorspace(linear_image,sRGBColorspace,exception);
if (SetImageStorageClass(paint_image,DirectClass,exception) == MagickFalse)
{
linear_image=DestroyImage(linear_image);
image_view=DestroyCacheView(image_view);
histograms=DestroyHistogramThreadSet(histograms);
linear_image=DestroyImage(linear_image);
- if (image->colorspace == sRGBColorspace)
- (void) TransformImageColorspace(paint_image,sRGBColorspace,exception);
if (status == MagickFalse)
paint_image=DestroyImage(paint_image);
return(paint_image);
if ((IsGrayColorspace(image->colorspace) != MagickFalse) &&
(IsPixelInfoGray(fill) == MagickFalse))
(void) TransformImageColorspace(image,RGBColorspace,exception);
- if ((fill->alpha_trait == BlendPixelTrait) && (image->alpha_trait != BlendPixelTrait))
+ if ((fill->alpha_trait == BlendPixelTrait) &&
+ (image->alpha_trait != BlendPixelTrait))
(void) SetImageAlpha(image,OpaqueAlpha,exception);
/*
Make image color opaque.