if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
status=MagickTrue;
for (i=0; textlist[i] != (char *) NULL; i++)
{
(void) SetCacheAlphaChannel(image,OpaqueAlpha,exception);
if ((IsPixelInfoGray(&image->background_color) == MagickFalse) &&
(IsGrayColorspace(image->colorspace) != MagickFalse))
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
break;
}
case TransparentVirtualPixelMethod:
if (destination_image == (Image *) NULL)
return((Image *) NULL);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace((Image *) image,sRGBColorspace,exception);
+ (void) TransformImageColorspace((Image *) image,RGBColorspace,exception);
if (expression == (const char *) NULL)
return(destination_image);
destination_channel=RedPixelChannel;
return(destination_image);
}
if (IsGrayColorspace(canvas->colorspace) != MagickFalse)
- (void) TransformImageColorspace(canvas,sRGBColorspace,exception);
+ (void) TransformImageColorspace(canvas,RGBColorspace,exception);
AppendImageToList(&destination_image,canvas);
destination_image=GetLastImageInList(destination_image);
GetMagickToken(p,&p,token);
if (texture_image == (const Image *) NULL)
return(MagickFalse);
if (IsGrayColorspace(texture_image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(texture_image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(texture_image,RGBColorspace,exception);
(void) SetImageVirtualPixelMethod(texture_image,TileVirtualPixelMethod,
exception);
status=MagickTrue;
}
if ((IsPixelInfoGray(&frame_image->matte_color) == MagickFalse) &&
(IsGrayColorspace(frame_image->colorspace) != MagickFalse))
- (void) SetImageColorspace(frame_image,sRGBColorspace,exception);
+ (void) SetImageColorspace(frame_image,RGBColorspace,exception);
if ((frame_image->matte_color.matte != MagickFalse) &&
(frame_image->matte == MagickFalse))
(void) SetImageAlpha(frame_image,OpaqueAlpha,exception);
}
if ((IsPixelInfoGray(&distort_image->background_color) == MagickFalse) &&
(IsGrayColorspace(distort_image->colorspace) != MagickFalse))
- (void) TransformImageColorspace(distort_image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(distort_image,RGBColorspace,exception);
if (distort_image->background_color.matte != MagickFalse)
distort_image->matte=MagickTrue;
distort_image->page.x=geometry.x;
if ((IsGrayColorspace(image->colorspace) != MagickFalse) &&
((IsPixelInfoGray(&draw_info->fill) == MagickFalse) ||
(IsPixelInfoGray(&draw_info->stroke) == MagickFalse)))
- (void) SetImageColorspace(image,sRGBColorspace,exception);
+ (void) SetImageColorspace(image,RGBColorspace,exception);
status=MagickTrue;
x=(ssize_t) ceil(primitive_info->point.x-0.5);
y=(ssize_t) ceil(primitive_info->point.y-0.5);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
clut_map=(PixelInfo *) AcquireQuantumMemory(MaxMap+1UL,sizeof(*clut_map));
if (clut_map == (PixelInfo *) NULL)
ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
if (image->matte == MagickFalse)
(void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
/*
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) SetImageColorspace(image,sRGBColorspace,exception);
+ (void) SetImageColorspace(image,RGBColorspace,exception);
if (image->storage_class == PseudoClass)
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static,4) shared(progress,status) \
return((Image *) NULL);
}
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(noise_image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(noise_image,RGBColorspace,exception);
/*
Add noise in each row.
*/
}
if ((IsGrayColorspace(image->colorspace) != MagickFalse) &&
(IsPixelInfoGray(colorize) != MagickFalse))
- (void) SetImageColorspace(colorize_image,sRGBColorspace,exception);
+ (void) SetImageColorspace(colorize_image,RGBColorspace,exception);
if ((colorize_image->matte == MagickFalse) &&
(colorize->matte != MagickFalse))
(void) SetImageAlpha(colorize_image,OpaqueAlpha,exception);
if (clone_image == (Image *) NULL)
return((Image *) NULL);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(clone_image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(clone_image,RGBColorspace,exception);
(void) SetImageVirtualPixelMethod(clone_image,TransparentVirtualPixelMethod,
exception);
border_info.width=(size_t) floor(2.0*sigma+0.5);
}
if ((IsGrayColorspace(image->colorspace) != MagickFalse) &&
(IsPixelInfoGray(tint) == MagickFalse))
- (void) SetImageColorspace(tint_image,sRGBColorspace,exception);
+ (void) SetImageColorspace(tint_image,RGBColorspace,exception);
if (blend == (const char *) NULL)
return(tint_image);
/*
return(MagickFalse);
if ((IsPixelInfoGray(&image->background_color) == MagickFalse) &&
(IsGrayColorspace(image->colorspace) != MagickFalse))
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
if ((image->background_color.matte != MagickFalse) &&
(image->matte == MagickFalse))
(void) SetImageAlpha(image,OpaqueAlpha,exception);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
if ((image->matte == MagickFalse) && (draw_info->fill.matte != MagickFalse))
(void) SetImageAlpha(image,OpaqueAlpha,exception);
/*
return(MagickFalse);
if ((IsGrayColorspace(image->colorspace) != MagickFalse) &&
(IsPixelInfoGray(fill) != MagickFalse))
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
if ((fill->matte != MagickFalse) && (image->matte == MagickFalse))
(void) SetImageAlpha(image,OpaqueAlpha,exception);
/*
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
GetPixelInfo(image,&threshold);
flags=ParseGeometry(thresholds,&geometry_info);
threshold.red=geometry_info.rho;
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (IsGrayColorspace(image->colorspace) != MagickFalse)
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(image,RGBColorspace,exception);
GetPixelInfo(image,&threshold);
flags=ParseGeometry(thresholds,&geometry_info);
threshold.red=geometry_info.rho;