AcquireColorCache • GetColorInfoList • GetColorList • ListColorInfo • QueryColorCompliance • QueryColorDatabase • QueryColorname • QueryMagickColorCompliance • QueryMagickColor • QueryMagickColorname
AcquireColorCache() caches one or more color configurations which provides a mapping between color attributes and a color name.
The format of the AcquireColorCache method is:
LinkedListInfo *AcquireColorCache(const char *filename, ExceptionInfo *exception)
A description of each parameter follows:
GetColorInfoList() returns any colors that match the specified pattern.
The format of the GetColorInfoList function is:
const ColorInfo **GetColorInfoList(const char *pattern, size_t *number_colors,ExceptionInfo *exception)
A description of each parameter follows:
GetColorList() returns any colors that match the specified pattern.
The format of the GetColorList function is:
char **GetColorList(const char *pattern,size_t *number_colors, ExceptionInfo *exception)
A description of each parameter follows:
ListColorInfo() lists color names to the specified file. Color names are a convenience. Rather than defining a color by its red, green, and blue intensities just use a color name such as white, blue, or yellow.
The format of the ListColorInfo method is:
MagickBooleanType ListColorInfo(FILE *file,ExceptionInfo *exception)
A description of each parameter follows.
List color names to this file handle.
return any errors or warnings in this structure.
QueryColorCompliance() returns the red, green, blue, and opacity intensities for a given color name.
The format of the QueryColorCompliance method is:
MagickBooleanType QueryColorCompliance(const char *name, const ComplianceType compliance,PixelPacket *color, ExceptionInfo *exception)
A description of each parameter follows:
QueryColorDatabase() returns the red, green, blue, and opacity intensities for a given color name.
The format of the QueryColorDatabase method is:
MagickBooleanType QueryColorDatabase(const char *name,PixelPacket *color, ExceptionInfo *exception)
A description of each parameter follows:
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 PixelPacket *color,const ComplianceType compliance,char *name, ExceptionInfo *exception)
A description of each parameter follows.
the image.
the color intensities.
Adhere to this color standard: SVG, X11, or XPM.
Return the color name or hex value.
return any errors or warnings in this structure.
QueryMagickColorCompliance() returns the red, green, blue, and opacity intensities for a given color name and standards compliance.
The format of the QueryMagickColor method is:
MagickBooleanType QueryMagickColorCompilence(const char *name, const ComplianceType compliance,MagickPixelPacket *color, ExceptionInfo *exception)
A description of each parameter follows:
QueryMagickColor() returns the red, green, blue, and opacity intensities for a given color name.
The format of the QueryMagickColor method is:
MagickBooleanType QueryMagickColor(const char *name, MagickPixelPacket *color,ExceptionInfo *exception)
A description of each parameter follows:
QueryMagickColorname() 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:
MagickBooleanType QueryMagickColorname(const Image *image, const PixelPacket *color,const ComplianceType compliance,char *name, ExceptionInfo *exception)
A description of each parameter follows.
the image.
the color intensities.
Adhere to this color standard: SVG, X11, or XPM.
Return the color name or hex value.
return any errors or warnings in this structure.