exception);
artifact=GetImageArtifact(image,"lowlight-color");
if (artifact != (const char *) NULL)
- (void) QueryColorCompliance(artifact,AllCompliance,&lowlight,
- exception);
- if (highlight_image->colorspace == CMYKColorspace)
- {
- ConvertRGBToCMYK(&highlight);
- ConvertRGBToCMYK(&lowlight);
- }
+ (void) QueryColorCompliance(artifact,AllCompliance,&lowlight,exception);
/*
Generate difference image.
*/
trough.green=QuantumScale*matte.green*TroughModulate;
trough.blue=QuantumScale*matte.blue*TroughModulate;
trough.alpha=matte.alpha;
- if (image->colorspace == CMYKColorspace)
- {
- ConvertRGBToCMYK(&interior);
- ConvertRGBToCMYK(&matte);
- ConvertRGBToCMYK(&border);
- ConvertRGBToCMYK(&accentuate);
- ConvertRGBToCMYK(&highlight);
- ConvertRGBToCMYK(&shadow);
- ConvertRGBToCMYK(&trough);
- }
status=MagickTrue;
progress=0;
image_view=AcquireCacheView(image);
SetPixelInfoPacket(distort_image,&distort_image->matte_color,&invalid);
if (distort_image->colorspace == CMYKColorspace)
ConvertRGBToCMYK(&invalid); /* what about other color spaces? */
-
for (i=0; i < (ssize_t) distort_image->columns; i++)
{
/* map pixel coordinate to distortion space coordinate */
break;
GetPixelInfo(image,&background);
SetPixelInfoPacket(image,&image->background_color,&background);
- if (image->colorspace == CMYKColorspace)
- ConvertRGBToCMYK(&background);
SetPacketPixelInfo(image,&background,&pixel);
image_view=AcquireCacheView(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
image->matte=MagickTrue;
GetPixelInfo(image,&background);
SetPixelInfoPacket(image,&image->background_color,&background);
- if (image->colorspace == CMYKColorspace)
- ConvertRGBToCMYK(&background);
SetPacketPixelInfo(image,&background,&pixel);
/*
Set image background color.
{
(void) GetFillColor(draw_info,x,y,&fill_color,exception);
SetPixelInfoPacket(image,&fill_color,&fill);
- if (image->colorspace == CMYKColorspace)
- ConvertRGBToCMYK(&fill);
if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
SetPixelRed(image,ClampToQuantum(fill.red),q);
if ((GetPixelGreenTraits(image) & UpdatePixelTrait) != 0)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
GetPixelInfo(image,&background);
SetPixelInfoPacket(image,&image->background_color,&background);
- if (image->colorspace == CMYKColorspace)
- ConvertRGBToCMYK(&background);
/*
X shear image.
*/
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
GetPixelInfo(image,&background);
SetPixelInfoPacket(image,&image->background_color,&background);
- if (image->colorspace == CMYKColorspace)
- ConvertRGBToCMYK(&background);
/*
Y Shear image.
*/
#define MagickLibAddendum "-0"
#define MagickLibInterface 7
#define MagickLibMinInterface 7
-#define MagickReleaseDate "2011-10-20"
+#define MagickReleaseDate "2011-10-22"
#define MagickChangeDate "20110801"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
#if defined(MAGICKCORE_OPENMP_SUPPORT)
ScaleShortToQuantum(colors[index].blue),q);
q+=GetPixelChannels(composite_image);
}
- if (SyncCacheViewAuthenticPixels(composite_view,exception) == MagickFalse)
+ status=SyncCacheViewAuthenticPixels(composite_view,exception);
+ if (status == MagickFalse)
break;
}
else
ScaleShortToQuantum((unsigned short) color),q);
q+=GetPixelChannels(composite_image);
}
- if (SyncCacheViewAuthenticPixels(composite_view,exception) == MagickFalse)
+ status=SyncCacheViewAuthenticPixels(composite_view,exception);
+ if (status == MagickFalse)
break;
}
break;
/*
Create colormap.
*/
- if (AcquireImageColormap(composite_image,number_colors,exception) == MagickFalse)
+ status=AcquireImageColormap(composite_image,number_colors,
+ exception);
+ if (status == MagickFalse)
{
XDestroyImage(ximage);
composite_image=DestroyImage(composite_image);
composite_image->colormap+(ssize_t) index,q);
q+=GetPixelChannels(composite_image);
}
- if (SyncCacheViewAuthenticPixels(composite_view,exception) == MagickFalse)
+ status=SyncCacheViewAuthenticPixels(composite_view,exception);
+ if (status == MagickFalse)
break;
}
break;