Lines Matching full:red

72 %  ConvertHCLToRGB() transforms a (hue, chroma, luma) to a (red, green,
78 % const double luma,double *red,double *green,double *blue)
85 % o red, green, blue: A pointer to a pixel component of type Quantum.
89 const double luma,double *red,double *green,double *blue) in ConvertHCLToRGB() argument
103 assert(red != (double *) NULL); in ConvertHCLToRGB()
148 *red=QuantumRange*(r+m); in ConvertHCLToRGB()
164 % ConvertHCLpToRGB() transforms a (hue, chroma, luma) to a (red, green,
171 % const double luma,double *red,double *green,double *blue)
178 % o red, green, blue: A pointer to a pixel component of type Quantum.
182 const double luma,double *red,double *green,double *blue) in ConvertHCLpToRGB() argument
197 assert(red != (double *) NULL); in ConvertHCLpToRGB()
254 *red=QuantumRange*(z*r+m); in ConvertHCLpToRGB()
270 % ConvertHSBToRGB() transforms a (hue, saturation, brightness) to a (red,
276 % const double brightness,double *red,double *green,double *blue)
283 % o red, green, blue: A pointer to a pixel component of type Quantum.
287 const double brightness,double *red,double *green,double *blue) in ConvertHSBToRGB() argument
299 assert(red != (double *) NULL); in ConvertHSBToRGB()
304 *red=QuantumRange*brightness; in ConvertHSBToRGB()
305 *green=(*red); in ConvertHSBToRGB()
306 *blue=(*red); in ConvertHSBToRGB()
319 *red=QuantumRange*brightness; in ConvertHSBToRGB()
326 *red=QuantumRange*q; in ConvertHSBToRGB()
333 *red=QuantumRange*p; in ConvertHSBToRGB()
340 *red=QuantumRange*p; in ConvertHSBToRGB()
347 *red=QuantumRange*t; in ConvertHSBToRGB()
354 *red=QuantumRange*brightness; in ConvertHSBToRGB()
373 % ConvertHSIToRGB() transforms a (hue, saturation, intensity) to a (red,
379 % const double intensity,double *red,double *green,double *blue)
386 % o red, green, blue: A pointer to a pixel component of type Quantum.
390 const double intensity,double *red,double *green,double *blue) in ConvertHSIToRGB() argument
401 assert(red != (double *) NULL); in ConvertHSIToRGB()
430 *red=QuantumRange*r; in ConvertHSIToRGB()
446 % ConvertHSLToRGB() transforms a (hue, saturation, lightness) to a (red,
452 % const double lightness,double *red,double *green,double *blue)
459 % o red, green, blue: A pointer to a pixel component of type Quantum.
463 const double lightness,double *red,double *green,double *blue) in ConvertHSLToRGB() argument
474 assert(red != (double *) NULL); in ConvertHSLToRGB()
490 *red=QuantumRange*(min+c); in ConvertHSLToRGB()
497 *red=QuantumRange*(min+x); in ConvertHSLToRGB()
504 *red=QuantumRange*min; in ConvertHSLToRGB()
511 *red=QuantumRange*min; in ConvertHSLToRGB()
518 *red=QuantumRange*(min+x); in ConvertHSLToRGB()
525 *red=QuantumRange*(min+c); in ConvertHSLToRGB()
532 *red=0.0; in ConvertHSLToRGB()
550 % ConvertHSVToRGB() transforms a (hue, saturation, value) to a (red,
556 % const double value,double *red,double *green,double *blue)
563 % o red, green, blue: A pointer to a pixel component of type Quantum.
567 const double value,double *red,double *green,double *blue) in ConvertHSVToRGB() argument
578 assert(red != (double *) NULL); in ConvertHSVToRGB()
591 *red=QuantumRange*(min+c); in ConvertHSVToRGB()
598 *red=QuantumRange*(min+x); in ConvertHSVToRGB()
605 *red=QuantumRange*min; in ConvertHSVToRGB()
612 *red=QuantumRange*min; in ConvertHSVToRGB()
619 *red=QuantumRange*(min+x); in ConvertHSVToRGB()
626 *red=QuantumRange*(min+c); in ConvertHSVToRGB()
633 *red=0.0; in ConvertHSVToRGB()
651 % ConvertHWBToRGB() transforms a (hue, whiteness, blackness) to a (red, green,
657 % const double blackness,double *red,double *green,double *blue)
664 % o red, green, blue: A pointer to a pixel component of type Quantum.
668 const double blackness,double *red,double *green,double *blue) in ConvertHWBToRGB() argument
684 assert(red != (double *) NULL); in ConvertHWBToRGB()
690 *red=QuantumRange*v; in ConvertHWBToRGB()
711 *red=QuantumRange*r; in ConvertHWBToRGB()
727 % ConvertLCHabToRGB() transforms a (luma, chroma, hue) to a (red, green,
733 % const double hue,double *red,double *green,double *blue)
740 % o red, green, blue: A pointer to a pixel component of type Quantum.
753 const double hue,const IlluminantType illuminant,double *red,double *green, in ConvertLCHabToRGB() argument
764 assert(red != (double *) NULL); in ConvertLCHabToRGB()
769 ConvertXYZToRGB(X,Y,Z,red,green,blue); in ConvertLCHabToRGB()
783 % ConvertLCHuvToRGB() transforms a (luma, chroma, hue) to a (red, green,
789 % const double hue,double *red,double *green,double *blue)
796 % o red, green, blue: A pointer to a pixel component of type Quantum.
809 const double hue,const IlluminantType illuminant,double *red,double *green, in ConvertLCHuvToRGB() argument
820 assert(red != (double *) NULL); in ConvertLCHuvToRGB()
825 ConvertXYZToRGB(X,Y,Z,red,green,blue); in ConvertLCHuvToRGB()
839 % ConvertRGBToHCL() transforms a (red, green, blue) to a (hue, chroma,
844 % void ConvertRGBToHCL(const double red,const double green,
849 % o red, green, blue: A Quantum value representing the red, green, and
856 MagickPrivate void ConvertRGBToHCL(const double red,const double green, in ConvertRGBToHCL() argument
870 max=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHCL()
871 c=max-(double) MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCL()
876 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHCL()
880 h=((blue-red)/c)+2.0; in ConvertRGBToHCL()
883 h=((red-green)/c)+4.0; in ConvertRGBToHCL()
886 *luma=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); in ConvertRGBToHCL()
900 % ConvertRGBToHCLp() transforms a (red, green, blue) to a (hue, chroma,
905 % void ConvertRGBToHCLp(const double red,const double green,
910 % o red, green, blue: A Quantum value representing the red, green, and
917 MagickPrivate void ConvertRGBToHCLp(const double red,const double green, in ConvertRGBToHCLp() argument
931 max=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHCLp()
932 c=max-MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCLp()
937 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHCLp()
941 h=((blue-red)/c)+2.0; in ConvertRGBToHCLp()
944 h=((red-green)/c)+4.0; in ConvertRGBToHCLp()
947 *luma=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); in ConvertRGBToHCLp()
961 % ConvertRGBToHSB() transforms a (red, green, blue) to a (hue, saturation,
966 % void ConvertRGBToHSB(const double red,const double green,
971 % o red, green, blue: A Quantum value representing the red, green, and
978 MagickPrivate void ConvertRGBToHSB(const double red,const double green, in ConvertRGBToHSB() argument
995 min=red < green ? red : green; in ConvertRGBToHSB()
998 max=red > green ? red : green; in ConvertRGBToHSB()
1008 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHSB()
1012 *hue=2.0+(blue-red)/delta; in ConvertRGBToHSB()
1014 *hue=4.0+(red-green)/delta; in ConvertRGBToHSB()
1031 % ConvertRGBToHSI() transforms a (red, green, blue) to a (hue, saturation,
1036 % void ConvertRGBToHSI(const double red,const double green,
1041 % o red, green, blue: A Quantum value representing the red, green, and
1048 MagickPrivate void ConvertRGBToHSI(const double red,const double green, in ConvertRGBToHSI() argument
1061 *intensity=(QuantumScale*red+QuantumScale*green+QuantumScale*blue)/3.0; in ConvertRGBToHSI()
1068 *saturation=1.0-MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSI()
1070 alpha=0.5*(2.0*QuantumScale*red-QuantumScale*green-QuantumScale*blue); in ConvertRGBToHSI()
1088 % ConvertRGBToHSL() transforms a (red, green, blue) to a (hue, saturation,
1093 % void ConvertRGBToHSL(const double red,const double green,
1098 % o red, green, blue: A Quantum value representing the red, green, and
1105 MagickExport void ConvertRGBToHSL(const double red,const double green, in ConvertRGBToHSL() argument
1119 max=MagickMax(QuantumScale*red,MagickMax(QuantumScale*green, in ConvertRGBToHSL()
1121 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSL()
1131 if (fabs(max-QuantumScale*red) < MagickEpsilon) in ConvertRGBToHSL()
1139 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c; in ConvertRGBToHSL()
1141 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c; in ConvertRGBToHSL()
1160 % ConvertRGBToHSV() transforms a (red, green, blue) to a (hue, saturation,
1165 % void ConvertRGBToHSV(const double red,const double green,
1170 % o red, green, blue: A Quantum value representing the red, green, and
1177 MagickPrivate void ConvertRGBToHSV(const double red,const double green, in ConvertRGBToHSV() argument
1191 max=MagickMax(QuantumScale*red,MagickMax(QuantumScale*green, in ConvertRGBToHSV()
1193 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSV()
1203 if (fabs(max-QuantumScale*red) < MagickEpsilon) in ConvertRGBToHSV()
1211 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c; in ConvertRGBToHSV()
1213 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c; in ConvertRGBToHSV()
1229 % ConvertRGBToHWB() transforms a (red, green, blue) to a (hue, whiteness,
1234 % void ConvertRGBToHWB(const double red,const double green,
1239 % o red, green, blue: A Quantum value representing the red, green, and
1246 MagickPrivate void ConvertRGBToHWB(const double red,const double green, in ConvertRGBToHWB() argument
1261 w=MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHWB()
1262 v=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHWB()
1270 f=(fabs(red-w) < MagickEpsilon) ? green-blue : in ConvertRGBToHWB()
1271 ((fabs(green-w) < MagickEpsilon) ? blue-red : red-green); in ConvertRGBToHWB()
1272 p=(fabs(red-w) < MagickEpsilon) ? 3.0 : in ConvertRGBToHWB()
1288 % ConvertRGBToLab() transforms a (red, green, blue) to a (L, a, b) triple.
1292 % void ConvertRGBToLCHab(const double red,const double green,
1297 % o red, green, blue: A Quantum value representing the red, green, and
1304 MagickPrivate void ConvertRGBToLab(const double red,const double green, in ConvertRGBToLab() argument
1313 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z); in ConvertRGBToLab()
1328 % ConvertRGBToLCHab() transforms a (red, green, blue) to a (luma, chroma,
1333 % void ConvertRGBToLCHab(const double red,const double green,
1338 % o red, green, blue: A Quantum value representing the red, green, and
1361 MagickPrivate void ConvertRGBToLCHab(const double red,const double green, in ConvertRGBToLCHab() argument
1376 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z); in ConvertRGBToLCHab()
1391 % ConvertRGBToLCHuv() transforms a (red, green, blue) to a (luma, chroma,
1396 % void ConvertRGBToLCHuv(const double red,const double green,
1401 % o red, green, blue: A Quantum value representing the red, green, and
1424 MagickPrivate void ConvertRGBToLCHuv(const double red,const double green, in ConvertRGBToLCHuv() argument
1439 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z); in ConvertRGBToLCHuv()