PixelInfo pen;
ExceptionInfo exceptionInfo;
GetExceptionInfo( &exceptionInfo );
- (void) QueryMagickColorCompliance(std::string(opaqueColor_).c_str(),
+ (void) QueryColorCompliance(std::string(opaqueColor_).c_str(),
AllCompliance, &opaque, &exceptionInfo);
- (void) QueryMagickColorCompliance(std::string(penColor_).c_str(),
+ (void) QueryColorCompliance(std::string(penColor_).c_str(),
AllCompliance, &pen, &exceptionInfo);
OpaquePaintImage ( image(), &opaque, &pen, MagickFalse, &exceptionInfo );
throwException( exceptionInfo );
std::string color = color_;
PixelInfo target;
- (void) QueryMagickColorCompliance(std::string(color_).c_str(),AllCompliance,
+ (void) QueryColorCompliance(std::string(color_).c_str(),AllCompliance,
&target,&image()->exception);
ExceptionInfo exceptionInfo;
GetExceptionInfo( &exceptionInfo );
PixelInfo targetLow;
PixelInfo targetHigh;
- (void) QueryMagickColorCompliance(std::string(colorLow_).c_str(),
+ (void) QueryColorCompliance(std::string(colorLow_).c_str(),
AllCompliance,&targetLow,&image()->exception);
- (void) QueryMagickColorCompliance(std::string(colorHigh_).c_str(),
+ (void) QueryColorCompliance(std::string(colorHigh_).c_str(),
AllCompliance,&targetHigh,&image()->exception);
ExceptionInfo exceptionInfo;
GetExceptionInfo( &exceptionInfo );
{
if (LocaleCompare((char *) keyword,"color") == 0)
{
- (void) QueryMagickColorCompliance(token,AllCompliance,
+ (void) QueryColorCompliance(token,AllCompliance,
&color_info->color,exception);
break;
}
% %
% %
% %
-% Q u e r y C o l o r C o m p l i e n c e %
++ Q u e r y C o l o r C o m p l i a n c e %
% %
% %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% QueryColorCompliance() returns the red, green, blue, and opacity intensities
-% for a given color name.
+% QueryColorCompliance() returns the red, green, blue, and alpha
+% intensities for a given color name and standards compliance.
%
% The format of the QueryColorCompliance method is:
%
% o exception: return any errors or warnings in this structure.
%
*/
-
-static inline double MagickMin(const double x,const double y)
-{
- if (x < y)
- return(x);
- return(y);
-}
-
MagickExport MagickBooleanType QueryColorCompliance(const char *name,
const ComplianceType compliance,PixelInfo *color,ExceptionInfo *exception)
-{
- MagickBooleanType
- status;
-
- PixelInfo
- pixel;
-
- status=QueryMagickColorCompliance(name,compliance,&pixel,exception);
- color->alpha=ClampToQuantum(pixel.alpha);
- if (pixel.colorspace == CMYKColorspace)
- {
- color->red=ClampToQuantum((MagickRealType)
- (QuantumRange-MagickMin(QuantumRange,(MagickRealType) (QuantumScale*
- pixel.red*(QuantumRange-pixel.black)+pixel.black))));
- color->green=ClampToQuantum((MagickRealType)
- (QuantumRange-MagickMin(QuantumRange,(MagickRealType) (QuantumScale*
- pixel.green*(QuantumRange-pixel.black)+pixel.black))));
- color->blue=ClampToQuantum((MagickRealType)
- (QuantumRange-MagickMin(QuantumRange,(MagickRealType) (QuantumScale*
- pixel.blue*(QuantumRange-pixel.black)+pixel.black))));
- color->black=ClampToQuantum((MagickRealType)
- (QuantumRange-MagickMin(QuantumRange,(MagickRealType) (QuantumScale*
- pixel.black*(QuantumRange-pixel.black)+pixel.black))));
- return(status);
- }
- color->red=ClampToQuantum(pixel.red);
- color->green=ClampToQuantum(pixel.green);
- color->blue=ClampToQuantum(pixel.blue);
- return(status);
-}
-\f
-/*
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% %
-% %
-% %
-% Q u e r y C o l o r n a m e %
-% %
-% %
-% %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
-% QueryColorname() returns a named color for the given color intensity. If
-% an exact match is not found, a rgb() color is returned instead.
-%
-% The format of the QueryColorname method is:
-%
-% MagickBooleanType QueryColorname(const Image *image,
-% const PixelInfo *color,const ComplianceType compliance,char *name,
-% ExceptionInfo *exception)
-%
-% A description of each parameter follows.
-%
-% o image: the image.
-%
-% o color: the color intensities.
-%
-% o compliance: Adhere to this color standard: SVG, X11, or XPM.
-%
-% o name: Return the color name or hex value.
-%
-% o exception: return any errors or warnings in this structure.
-%
-*/
-MagickExport MagickBooleanType QueryColorname(const Image *image,
- const PixelInfo *color,const ComplianceType compliance,char *name,
- ExceptionInfo *exception)
-{
- PixelInfo
- pixel;
-
- GetPixelInfo(image,&pixel);
- SetPixelInfoPacket(image,color,&pixel);
- return(QueryMagickColorname(image,&pixel,compliance,name,exception));
-}
-\f
-/*
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% %
-% %
-% %
-+ Q u e r y M a g i c k C o l o r C o m p l i a n c e %
-% %
-% %
-% %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
-% QueryMagickColorCompliance() returns the red, green, blue, and alpha
-% intensities for a given color name and standards compliance.
-%
-% The format of the QueryMagickColorCompliance method is:
-%
-% MagickBooleanType QueryMagickColorCompliance(const char *name,
-% const ComplianceType compliance,PixelInfo *color,
-% ExceptionInfo *exception)
-%
-% A description of each parameter follows:
-%
-% o name: the color name (e.g. white, blue, yellow).
-%
-% o compliance: Adhere to this color standard: SVG, X11, or XPM.
-%
-% o color: the red, green, blue, and opacity intensities values of the
-% named color in this structure.
-%
-% o exception: return any errors or warnings in this structure.
-%
-*/
-MagickExport MagickBooleanType QueryMagickColorCompliance(const char *name,
- const ComplianceType compliance,PixelInfo *color,ExceptionInfo *exception)
{
GeometryInfo
geometry_info;
% %
% %
% %
-% Q u e r y M a g i c k C o l o r n a m e %
+% Q u e r y C o l o r n a m e %
% %
% %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% QueryMagickColorname() returns a named color for the given color intensity.
+% QueryColorname() returns a named color for the given color intensity.
% If an exact match is not found, a hex value is returned instead. For
% example an intensity of rgb:(0,0,0) returns black whereas rgb:(223,223,223)
% returns #dfdfdf.
%
-% The format of the QueryMagickColorname method is:
+% The format of the QueryColorname method is:
%
-% MagickBooleanType QueryMagickColorname(const Image *image,
+% MagickBooleanType QueryColorname(const Image *image,
% const PixelInfo *color,const ComplianceType compliance,char *name,
% ExceptionInfo *exception)
%
% o exception: return any errors or warnings in this structure.
%
*/
-MagickExport MagickBooleanType QueryMagickColorname(const Image *image,
+
+static inline double MagickMin(const double x,const double y)
+{
+ if (x < y)
+ return(x);
+ return(y);
+}
+
+MagickExport MagickBooleanType QueryColorname(const Image *image,
const PixelInfo *color,const ComplianceType compliance,char *name,
ExceptionInfo *exception)
{
ListColorInfo(FILE *,ExceptionInfo *),
QueryColorCompliance(const char *,const ComplianceType,PixelInfo *,
ExceptionInfo *),
- QueryColorname(const Image *,const PixelInfo *,const ComplianceType,char *,
- ExceptionInfo *),
- QueryMagickColorCompliance(const char *,const ComplianceType,PixelInfo *,
- ExceptionInfo *),
- QueryMagickColorname(const Image *,const PixelInfo *,const ComplianceType,
+ QueryColorname(const Image *,const PixelInfo *,const ComplianceType,
char *,ExceptionInfo *);
extern MagickExport void
return((Image *) NULL);
}
(void) SetImageAlphaChannel(highlight_image,OpaqueAlphaChannel,exception);
- (void) QueryMagickColorCompliance("#f1001ecc",AllCompliance,&highlight,
+ (void) QueryColorCompliance("#f1001ecc",AllCompliance,&highlight,
exception);
artifact=GetImageArtifact(image,"highlight-color");
if (artifact != (const char *) NULL)
- (void) QueryMagickColorCompliance(artifact,AllCompliance,&highlight,
+ (void) QueryColorCompliance(artifact,AllCompliance,&highlight,
exception);
- (void) QueryMagickColorCompliance("#ffffffcc",AllCompliance,&lowlight,
+ (void) QueryColorCompliance("#ffffffcc",AllCompliance,&lowlight,
exception);
artifact=GetImageArtifact(image,"lowlight-color");
if (artifact != (const char *) NULL)
- (void) QueryMagickColorCompliance(artifact,AllCompliance,&lowlight,
+ (void) QueryColorCompliance(artifact,AllCompliance,&lowlight,
exception);
if (highlight_image->colorspace == CMYKColorspace)
{
p+=strlen(name);
}
else
- if (QueryMagickColorCompliance(name,AllCompliance,&pixel,fx_info->exception) != MagickFalse)
+ if (QueryColorCompliance(name,AllCompliance,&pixel,fx_info->exception) != MagickFalse)
{
(void) AddValueToSplayTree(fx_info->colors,ConstantString(name),
ClonePixelInfo(&pixel));
tuple);
}
(void) ConcatenateMagickString(tuple,")",MaxTextExtent);
- (void) QueryMagickColorname(image,&pixel,SVGCompliance,color,exception);
+ (void) QueryColorname(image,&pixel,SVGCompliance,color,exception);
GetColorTuple(&pixel,MagickTrue,hex);
(void) FormatLocaleFile(file,"%10" MagickSizeFormat,p->count);
(void) FormatLocaleFile(file,": %s %s %s\n",tuple,hex,color);
GetPixelInfo(image,&pixel);
SetPixelInfo(image,p,&pixel);
- (void) QueryMagickColorname(image,&pixel,SVGCompliance,tuple,
+ (void) QueryColorname(image,&pixel,SVGCompliance,tuple,
exception);
(void) FormatLocaleFile(file," Alpha: %s ",tuple);
GetColorTuple(&pixel,MagickTrue,tuple);
X11Compliance,tuple);
}
(void) ConcatenateMagickString(tuple,")",MaxTextExtent);
- (void) QueryMagickColorname(image,&pixel,SVGCompliance,color,
+ (void) QueryColorname(image,&pixel,SVGCompliance,color,
exception);
GetColorTuple(&pixel,MagickTrue,hex);
(void) FormatLocaleFile(file," %8ld: %s %s %s\n",(long) i,tuple,
/* #undef AUTOTRACE_DELEGATE */
/* Define if coders and filters are to be built as modules. */
-/* #undef BUILD_MODULES */
+#ifndef MAGICKCORE_BUILD_MODULES
+#define MAGICKCORE_BUILD_MODULES 1
+#endif
/* Define if you have the bzip2 library */
#ifndef MAGICKCORE_BZLIB_DELEGATE
#endif
/* Define if you have FFTW library */
-/* #undef FFTW_DELEGATE */
+#ifndef MAGICKCORE_FFTW_DELEGATE
+#define MAGICKCORE_FFTW_DELEGATE 1
+#endif
/* Location of filter modules */
#ifndef MAGICKCORE_FILTER_PATH
#endif
/* Define to 1 if you have the <CL/cl.h> header file. */
-/* #undef HAVE_CL_CL_H */
+#ifndef MAGICKCORE_HAVE_CL_CL_H
+#define MAGICKCORE_HAVE_CL_CL_H 1
+#endif
/* Define to 1 if you have the <complex.h> header file. */
#ifndef MAGICKCORE_HAVE_COMPLEX_H
#endif
/* Define if you have the <lcms2.h> header file. */
-#ifndef MAGICKCORE_HAVE_LCMS2_H
-#define MAGICKCORE_HAVE_LCMS2_H 1
-#endif
+/* #undef HAVE_LCMS2_H */
/* Define if you have the <lcms2/lcms2.h> header file. */
/* #undef HAVE_LCMS2_LCMS2_H */
/* Define if you have the <lcms.h> header file. */
-/* #undef HAVE_LCMS_H */
+#ifndef MAGICKCORE_HAVE_LCMS_H
+#define MAGICKCORE_HAVE_LCMS_H 1
+#endif
/* Define if you have the <lcms/lcms.h> header file. */
/* #undef HAVE_LCMS_LCMS_H */
#endif
/* Define if you have JBIG library */
-/* #undef JBIG_DELEGATE */
+#ifndef MAGICKCORE_JBIG_DELEGATE
+#define MAGICKCORE_JBIG_DELEGATE 1
+#endif
/* Define if you have JPEG version 2 "Jasper" library */
#ifndef MAGICKCORE_JP2_DELEGATE
#endif
/* Define if you have LQR library */
-/* #undef LQR_DELEGATE */
+#ifndef MAGICKCORE_LQR_DELEGATE
+#define MAGICKCORE_LQR_DELEGATE 1
+#endif
/* Define if using libltdl to support dynamically loadable modules */
#ifndef MAGICKCORE_LTDL_DELEGATE
/* Define to the system default library search path. */
#ifndef MAGICKCORE_LT_DLSEARCH_PATH
-#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/atlas:/usr/lib/llvm:/usr/lib64/llvm:/usr/lib64/mysql:/usr/lib64/qt-3.3/lib:/usr/lib64/tcl8.5/tclx8.4:/usr/lib64/tcl8.5:/usr/lib/wine/:/usr/lib64/wine/:/usr/lib64/xulrunner-2"
+#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/R/lib:/usr/lib64/atlas:/opt/modules/pkg/intel/f77/10.0.025/lib:/opt/intel/lib/intel64:/usr/lib64/llvm:/usr/local/lib:/usr/lib64/mysql:/usr/lib64/nvidia:/usr/lib64/qt-3.3/lib:/usr/lib64/xulrunner-2"
#endif
/* The archive extension */
/* #undef NO_MINUS_C_MINUS_O */
/* Define if you have OPENEXR library */
-/* #undef OPENEXR_DELEGATE */
+#ifndef MAGICKCORE_OPENEXR_DELEGATE
+#define MAGICKCORE_OPENEXR_DELEGATE 1
+#endif
/* Define to the address where bug reports for this package should be sent. */
#ifndef MAGICKCORE_PACKAGE_BUGREPORT
#endif
/* Define if you have RSVG library */
-/* #undef RSVG_DELEGATE */
+#ifndef MAGICKCORE_RSVG_DELEGATE
+#define MAGICKCORE_RSVG_DELEGATE 1
+#endif
/* Define to the type of arg 1 for `select'. */
#ifndef MAGICKCORE_SELECT_TYPE_ARG1
/* Define if you have WEBP library */
-/* #undef WEBP_DELEGATE */
+#ifndef MAGICKCORE_WEBP_DELEGATE
+#define MAGICKCORE_WEBP_DELEGATE 1
+#endif
/* Define to use the Windows GDI32 library */
/* #undef WINGDI32_DELEGATE */
/* #undef WITH_DMALLOC */
/* Define if you have WMF library */
-/* #undef WMF_DELEGATE */
+#ifndef MAGICKCORE_WMF_DELEGATE
+#define MAGICKCORE_WMF_DELEGATE 1
+#endif
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
/* #undef _MINIX */
/* Define this for the OpenCL Accelerator */
-/* #undef _OPENCL */
+#ifndef MAGICKCORE__OPENCL
+#define MAGICKCORE__OPENCL 1
+#endif
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#define QuantizeImages PrependMagickMethod(QuantizeImages)
#define QueryColorDatabase PrependMagickMethod(QueryColorDatabase)
#define QueryColorname PrependMagickMethod(QueryColorname)
-#define QueryMagickColorname PrependMagickMethod(QueryMagickColorname)
+#define QueryColorname PrependMagickMethod(QueryColorname)
#define QueryMagickColor PrependMagickMethod(QueryMagickColor)
#define QueueAuthenticNexus PrependMagickMethod(QueueAuthenticNexus)
#define QueueAuthenticPixels PrependMagickMethod(QueueAuthenticPixels)
char
name[MaxTextExtent];
- (void) QueryMagickColorname(image,&pixel,SVGCompliance,name,
+ (void) QueryColorname(image,&pixel,SVGCompliance,name,
exception);
(void) SetImageProperty((Image *) image,property,name);
return(GetImageProperty(image,property));
*/
#define MagickPackageName "ImageMagick"
#define MagickCopyright "Copyright (C) 1999-2011 ImageMagick Studio LLC"
-#define MagickSVNRevision "5636"
+#define MagickSVNRevision "exported"
#define MagickLibVersion 0x700
#define MagickLibVersionText "7.0.0"
#define MagickLibVersionNumber 7,0,0
y+=height;
(void) XDrawImageString(display,windows->magnify.pixmap,
windows->magnify.annotate_context,x,y,tuple,(int) strlen(tuple));
- (void) QueryMagickColorname(windows->image.image,&pixel,SVGCompliance,tuple,
+ (void) QueryColorname(windows->image.image,&pixel,SVGCompliance,tuple,
&windows->image.image->exception);
y+=height;
(void) XDrawImageString(display,windows->magnify.pixmap,
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
PixelGetMagickColor(background,&pixel);
- images=NewMagickImage(wand->image_info,width,height,&pixel,&wand->exception);
+ images=NewMagickImage(wand->image_info,width,height,&pixel,wand->exception);
if (images == (Image *) NULL)
return(MagickFalse);
return(InsertImageInWand(wand,images));
if ( token[0] == '\0' ) break;
if ( isalpha((int) token[0]) || token[0] == '#' ) {
/* Color string given */
- (void) QueryMagickColorCompliance(token,AllCompliance,&color,exception);
+ (void) QueryColorCompliance(token,AllCompliance,&color,exception);
if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
sparse_arguments[x++] = QuantumScale*color.red;
if ((GetPixelGreenTraits(image) & UpdatePixelTrait) != 0)
GetPixelInfo(*image,&fill);
if (*option == '+')
{
- (void) QueryMagickColorCompliance("none",AllCompliance,&fill,
+ (void) QueryColorCompliance("none",AllCompliance,&fill,
exception);
(void) QueryColorCompliance("none",AllCompliance,
&draw_info->fill,exception);
break;
}
sans=AcquireExceptionInfo();
- (void) QueryMagickColorCompliance(argv[i+1],AllCompliance,&fill,
+ (void) QueryColorCompliance(argv[i+1],AllCompliance,&fill,
sans);
status=QueryColorCompliance(argv[i+1],AllCompliance,
&draw_info->fill,sans);
*/
(void) SyncImageSettings(mogrify_info,*image);
(void) ParsePageGeometry(*image,argv[i+1],&geometry,exception);
- (void) QueryMagickColorCompliance(argv[i+2],AllCompliance,&target,
+ (void) QueryColorCompliance(argv[i+2],AllCompliance,&target,
exception);
(void) FloodfillPaintImage(*image,draw_info,&target,geometry.x,
geometry.y,*option == '-' ? MagickFalse : MagickTrue,exception);
p=(const char *) argv[i+1];
GetMagickToken(p,&p,token); /* get black point color */
if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
- (void) QueryMagickColorCompliance(token,AllCompliance,
+ (void) QueryColorCompliance(token,AllCompliance,
&black_point,exception);
else
- (void) QueryMagickColorCompliance("#000000",AllCompliance,
+ (void) QueryColorCompliance("#000000",AllCompliance,
&black_point,exception);
if (isalpha((int) token[0]) || (token[0] == '#'))
GetMagickToken(p,&p,token);
if ((isalpha((int) *token) == 0) && ((*token == '#') == 0))
GetMagickToken(p,&p,token); /* Get white point color. */
if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
- (void) QueryMagickColorCompliance(token,AllCompliance,
+ (void) QueryColorCompliance(token,AllCompliance,
&white_point,exception);
else
- (void) QueryMagickColorCompliance("#ffffff",AllCompliance,
+ (void) QueryColorCompliance("#ffffff",AllCompliance,
&white_point,exception);
}
(void) LevelImageColors(*image,&black_point,&white_point,
target;
(void) SyncImageSettings(mogrify_info,*image);
- (void) QueryMagickColorCompliance(argv[i+1],AllCompliance,&target,
+ (void) QueryColorCompliance(argv[i+1],AllCompliance,&target,
exception);
(void) OpaquePaintImage(*image,&target,&fill,*option == '-' ?
MagickFalse : MagickTrue,exception);
target;
(void) SyncImageSettings(mogrify_info,*image);
- (void) QueryMagickColorCompliance(argv[i+1],AllCompliance,&target,
+ (void) QueryColorCompliance(argv[i+1],AllCompliance,&target,
exception);
(void) TransparentPaintImage(*image,&target,(Quantum)
TransparentAlpha,*option == '-' ? MagickFalse : MagickTrue,
if ( token[0] == '\0' ) break;
if ( isalpha((int) token[0]) || token[0] == '#' ) {
/* Color string given */
- (void) QueryMagickColorCompliance(token,AllCompliance,&color,
+ (void) QueryColorCompliance(token,AllCompliance,&color,
exception);
if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
sparse_arguments[x++] = QuantumScale*color.red;
(void) SetImageOption(image_info,option,value);
sans=AcquireExceptionInfo();
- /*(void) QueryMagickColorCompliance(value,AllCompliance,&fill,sans);*/
+ /*(void) QueryColorCompliance(value,AllCompliance,&fill,sans);*/
status=QueryColorCompliance(value,AllCompliance,&draw_info->fill,sans);
sans=DestroyExceptionInfo(sans);
*/
(void) SyncImageSettings(image_info,*image);
(void) ParsePageGeometry(*image,argv[1],&geometry,exception);
- (void) QueryMagickColorCompliance(argv[2],AllCompliance,&target,
+ (void) QueryColorCompliance(argv[2],AllCompliance,&target,
exception);
(void) FloodfillPaintImage(*image,draw_info,&target,geometry.x,
geometry.y,*argv[0] == '-' ? MagickFalse : MagickTrue,exception);
p=(const char *) argv[1];
GetMagickToken(p,&p,token); /* get black point color */
if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
- (void) QueryMagickColorCompliance(token,AllCompliance,
+ (void) QueryColorCompliance(token,AllCompliance,
&black_point,exception);
else
- (void) QueryMagickColorCompliance("#000000",AllCompliance,
+ (void) QueryColorCompliance("#000000",AllCompliance,
&black_point,exception);
if (isalpha((int) token[0]) || (token[0] == '#'))
GetMagickToken(p,&p,token);
if ((isalpha((int) *token) == 0) && ((*token == '#') == 0))
GetMagickToken(p,&p,token); /* Get white point color. */
if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
- (void) QueryMagickColorCompliance(token,AllCompliance,
+ (void) QueryColorCompliance(token,AllCompliance,
&white_point,exception);
else
- (void) QueryMagickColorCompliance("#ffffff",AllCompliance,
+ (void) QueryColorCompliance("#ffffff",AllCompliance,
&white_point,exception);
}
(void) LevelImageColors(*image,&black_point,&white_point,
target;
(void) SyncImageSettings(image_info,*image);
- (void) QueryMagickColorCompliance(argv[1],AllCompliance,&target,
+ (void) QueryColorCompliance(argv[1],AllCompliance,&target,
exception);
(void) OpaquePaintImage(*image,&target,&fill,*argv[0] == '-' ?
MagickFalse : MagickTrue,exception);
target;
(void) SyncImageSettings(image_info,*image);
- (void) QueryMagickColorCompliance(argv[1],AllCompliance,&target,
+ (void) QueryColorCompliance(argv[1],AllCompliance,&target,
exception);
(void) TransparentPaintImage(*image,&target,(Quantum)
TransparentAlpha,*argv[0] == '-' ? MagickFalse : MagickTrue,
assert(wand->signature == WandSignature);
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
- status=QueryMagickColorCompliance(color,AllCompliance,&pixel,wand->exception);
+ status=QueryColorCompliance(color,AllCompliance,&pixel,wand->exception);
if (status != MagickFalse)
wand->pixel=pixel;
return(status);
{
if ((strchr(SvPV(sval,na),',') == 0) ||
(strchr(SvPV(sval,na),')') != 0))
- QueryMagickColorCompliance(SvPV(sval,na),AllCompliance,
+ QueryColorCompliance(SvPV(sval,na),AllCompliance,
&pixel,exception);
else
{
target.blue=virtual_pixel[BluePixelChannel];
target.alpha=virtual_pixel[AlphaPixelChannel];
if (attribute_flag[0] != 0)
- (void) QueryMagickColorCompliance(argument_list[0].string_reference,
+ (void) QueryColorCompliance(argument_list[0].string_reference,
AllCompliance,&target,exception);
if (attribute_flag[1] == 0)
argument_list[1].string_reference="100%";
invert=MagickFalse;
if (attribute_flag[4] != 0)
{
- QueryMagickColorCompliance(argument_list[4].string_reference,
+ QueryColorCompliance(argument_list[4].string_reference,
AllCompliance,&target,exception);
invert=MagickTrue;
}
target.blue=virtual_pixel[BluePixelChannel];
target.alpha=virtual_pixel[AlphaPixelChannel];
if (attribute_flag[4] != 0)
- QueryMagickColorCompliance(argument_list[4].string_reference,
+ QueryColorCompliance(argument_list[4].string_reference,
AllCompliance,&target,exception);
if (attribute_flag[3] != 0)
target.alpha=SiPrefixToDouble(argument_list[3].string_reference,
fill_color,
target;
- (void) QueryMagickColorCompliance("none",AllCompliance,&target,
+ (void) QueryColorCompliance("none",AllCompliance,&target,
exception);
- (void) QueryMagickColorCompliance("none",AllCompliance,&fill_color,
+ (void) QueryColorCompliance("none",AllCompliance,&fill_color,
exception);
if (attribute_flag[0] != 0)
- (void) QueryMagickColorCompliance(argument_list[0].string_reference,
+ (void) QueryColorCompliance(argument_list[0].string_reference,
AllCompliance,&target,exception);
if (attribute_flag[1] != 0)
- (void) QueryMagickColorCompliance(argument_list[1].string_reference,
+ (void) QueryColorCompliance(argument_list[1].string_reference,
AllCompliance,&fill_color,exception);
if (attribute_flag[2] != 0)
image->fuzz=SiPrefixToDouble(argument_list[2].string_reference,
PixelInfo
target;
- (void) QueryMagickColorCompliance("none",AllCompliance,&target,
+ (void) QueryColorCompliance("none",AllCompliance,&target,
exception);
if (attribute_flag[0] != 0)
- (void) QueryMagickColorCompliance(argument_list[0].string_reference,
+ (void) QueryColorCompliance(argument_list[0].string_reference,
AllCompliance,&target,exception);
opacity=TransparentAlpha;
if (attribute_flag[1] != 0)
GetPixelInfo(image,&tint);
if (attribute_flag[0] != 0)
- (void) QueryMagickColorCompliance(argument_list[0].string_reference,
+ (void) QueryColorCompliance(argument_list[0].string_reference,
AllCompliance,&tint,exception);
if (attribute_flag[1] == 0)
argument_list[1].string_reference="100";
target.blue=virtual_pixel[BluePixelChannel];
target.alpha=virtual_pixel[AlphaPixelChannel];
if (attribute_flag[4] != 0)
- QueryMagickColorCompliance(argument_list[4].string_reference,
+ QueryColorCompliance(argument_list[4].string_reference,
AllCompliance,&target,exception);
if (attribute_flag[5] != 0)
image->fuzz=SiPrefixToDouble(argument_list[5].string_reference,
black_point,
white_point;
- (void) QueryMagickColorCompliance("#000000",AllCompliance,
+ (void) QueryColorCompliance("#000000",AllCompliance,
&black_point,exception);
- (void) QueryMagickColorCompliance("#ffffff",AllCompliance,
+ (void) QueryColorCompliance("#ffffff",AllCompliance,
&white_point,exception);
if (attribute_flag[1] != 0)
- (void) QueryMagickColorCompliance(
+ (void) QueryColorCompliance(
argument_list[1].string_reference,AllCompliance,&black_point,
exception);
if (attribute_flag[2] != 0)
- (void) QueryMagickColorCompliance(
+ (void) QueryColorCompliance(
argument_list[2].string_reference,AllCompliance,&white_point,
exception);
if (attribute_flag[3] != 0)
PixelInfo
color;
- (void) QueryMagickColorCompliance("none",AllCompliance,&color,
+ (void) QueryColorCompliance("none",AllCompliance,&color,
exception);
if (attribute_flag[0] != 0)
- (void) QueryMagickColorCompliance(argument_list[0].string_reference,
+ (void) QueryColorCompliance(argument_list[0].string_reference,
AllCompliance,&color,exception);
(void) SetImageColor(image,&color);
break;
*/
info=GetPackageInfo(aTHX_ (void *) av,info,exception);
montage_info=CloneMontageInfo(info->image_info,(MontageInfo *) NULL);
- (void) QueryMagickColorCompliance("none",AllCompliance,&transparent_color,
+ (void) QueryColorCompliance("none",AllCompliance,&transparent_color,
exception);
for (i=2; i < items; i+=2)
{
PixelInfo
transparent_color;
- QueryMagickColorCompliance(SvPV(ST(i),na),AllCompliance,
+ QueryColorCompliance(SvPV(ST(i),na),AllCompliance,
&transparent_color,exception);
for (next=image; next; next=next->next)
(void) TransparentPaintImage(next,&transparent_color,
for (i=1; i < items; i++)
{
name=(char *) SvPV(ST(i),na);
- if (QueryMagickColorCompliance(name,AllCompliance,&color,exception) == MagickFalse)
+ if (QueryColorCompliance(name,AllCompliance,&color,exception) == MagickFalse)
{
PUSHs(&sv_undef);
continue;
{
if (LocaleCompare(keyword,"fill") == 0)
{
- (void) QueryMagickColorCompliance(value,AllCompliance,
+ (void) QueryColorCompliance(value,AllCompliance,
&target,&msl_info->image[n]->exception);
break;
}
{
if (LocaleCompare(keyword,"bordercolor") == 0)
{
- (void) QueryMagickColorCompliance(value,AllCompliance,
+ (void) QueryColorCompliance(value,AllCompliance,
&target,&exception);
paint_method=FillToBorderMethod;
break;
{
if (LocaleCompare(keyword,"bordercolor") == 0)
{
- (void) QueryMagickColorCompliance(value,AllCompliance,
+ (void) QueryColorCompliance(value,AllCompliance,
&target,&exception);
paint_method=FillToBorderMethod;
break;
(const char *) tag);
break;
}
- (void) QueryMagickColorCompliance("none",AllCompliance,&target,
+ (void) QueryColorCompliance("none",AllCompliance,&target,
&exception);
- (void) QueryMagickColorCompliance("none",AllCompliance,&fill_color,
+ (void) QueryColorCompliance("none",AllCompliance,&fill_color,
&exception);
if (attributes != (const xmlChar **) NULL)
for (i=0; (attributes[i] != (const xmlChar *) NULL); i++)
{
if (LocaleCompare(keyword,"fill") == 0)
{
- (void) QueryMagickColorCompliance(value,AllCompliance,
+ (void) QueryColorCompliance(value,AllCompliance,
&fill_color,&exception);
break;
}
PixelInfo
target;
- (void) QueryMagickColorCompliance(value,AllCompliance,&target,
+ (void) QueryColorCompliance(value,AllCompliance,&target,
&exception);
(void) TransparentPaintImage(msl_info->image[n],&target,
TransparentAlpha,MagickFalse,&msl_info->image[n]->exception);
for (x=0; x < (ssize_t) image->columns; x++)
{
SetPixelInfo(image,p,&pixel);
- (void) QueryMagickColorname(image,&pixel,SVGCompliance,tuple,
+ (void) QueryColorname(image,&pixel,SVGCompliance,tuple,
&image->exception);
(void) FormatLocaleString(message,MaxTextExtent,
" <circle cx=\"%.20g\" cy=\"%.20g\" r=\"1\" fill=\"%s\"/>\n",
(void) FormatLocaleString(buffer,MaxTextExtent,"%s",tuple);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image," ");
- (void) QueryMagickColorname(image,&pixel,SVGCompliance,tuple,exception);
+ (void) QueryColorname(image,&pixel,SVGCompliance,tuple,exception);
(void) WriteBlobString(image,tuple);
(void) WriteBlobString(image,"\n");
p+=GetPixelChannels(image);
if (image->rows == 0)
image->rows=1;
(void) CopyMagickString(image->filename,image_info->filename,MaxTextExtent);
- status=QueryMagickColorCompliance((char *) image_info->filename,AllCompliance,
+ status=QueryColorCompliance((char *) image_info->filename,AllCompliance,
&color,exception);
if (status == MagickFalse)
{
pixel.colorspace=RGBColorspace;
pixel.depth=8;
pixel.alpha=(MagickRealType) OpaqueAlpha;
- (void) QueryMagickColorname(image,&pixel,XPMCompliance,name,exception);
+ (void) QueryColorname(image,&pixel,XPMCompliance,name,exception);
if (transparent != MagickFalse)
{
if (i == (ssize_t) (colors-1))
pixel.colorspace=RGBColorspace;
pixel.depth=8;
pixel.alpha=(MagickRealType) OpaqueAlpha;
- (void) QueryMagickColorname(image,&pixel,XPMCompliance,name,exception);
+ (void) QueryColorname(image,&pixel,XPMCompliance,name,exception);
if (i == opacity)
(void) CopyMagickString(name,"None",MaxTextExtent);
/*