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.
752 const double hue,double *red,double *green,double *blue) in ConvertLCHabToRGB() argument
762 assert(red != (double *) NULL); in ConvertLCHabToRGB()
766 ConvertXYZToRGB(X,Y,Z,red,green,blue); in ConvertLCHabToRGB()
780 % ConvertLCHuvToRGB() transforms a (luma, chroma, hue) to a (red, green,
786 % const double hue,double *red,double *green,double *blue)
793 % o red, green, blue: A pointer to a pixel component of type Quantum.
805 const double hue,double *red,double *green,double *blue) in ConvertLCHuvToRGB() argument
815 assert(red != (double *) NULL); in ConvertLCHuvToRGB()
819 ConvertXYZToRGB(X,Y,Z,red,green,blue); in ConvertLCHuvToRGB()
833 % ConvertRGBToHCL() transforms a (red, green, blue) to a (hue, chroma,
838 % void ConvertRGBToHCL(const double red,const double green,
843 % o red, green, blue: A Quantum value representing the red, green, and
850 MagickPrivate void ConvertRGBToHCL(const double red,const double green, in ConvertRGBToHCL() argument
864 max=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHCL()
865 c=max-(double) MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCL()
870 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHCL()
874 h=((blue-red)/c)+2.0; in ConvertRGBToHCL()
877 h=((red-green)/c)+4.0; in ConvertRGBToHCL()
880 *luma=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); in ConvertRGBToHCL()
894 % ConvertRGBToHCLp() transforms a (red, green, blue) to a (hue, chroma,
899 % void ConvertRGBToHCLp(const double red,const double green,
904 % o red, green, blue: A Quantum value representing the red, green, and
911 MagickPrivate void ConvertRGBToHCLp(const double red,const double green, in ConvertRGBToHCLp() argument
925 max=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHCLp()
926 c=max-MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCLp()
931 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHCLp()
935 h=((blue-red)/c)+2.0; in ConvertRGBToHCLp()
938 h=((red-green)/c)+4.0; in ConvertRGBToHCLp()
941 *luma=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); in ConvertRGBToHCLp()
955 % ConvertRGBToHSB() transforms a (red, green, blue) to a (hue, saturation,
960 % void ConvertRGBToHSB(const double red,const double green,
965 % o red, green, blue: A Quantum value representing the red, green, and
972 MagickPrivate void ConvertRGBToHSB(const double red,const double green, in ConvertRGBToHSB() argument
989 min=red < green ? red : green; in ConvertRGBToHSB()
992 max=red > green ? red : green; in ConvertRGBToHSB()
1002 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHSB()
1006 *hue=2.0+(blue-red)/delta; in ConvertRGBToHSB()
1008 *hue=4.0+(red-green)/delta; in ConvertRGBToHSB()
1025 % ConvertRGBToHSI() transforms a (red, green, blue) to a (hue, saturation,
1030 % void ConvertRGBToHSI(const double red,const double green,
1035 % o red, green, blue: A Quantum value representing the red, green, and
1042 MagickPrivate void ConvertRGBToHSI(const double red,const double green, in ConvertRGBToHSI() argument
1055 *intensity=(QuantumScale*red+QuantumScale*green+QuantumScale*blue)/3.0; in ConvertRGBToHSI()
1062 *saturation=1.0-MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSI()
1064 alpha=0.5*(2.0*QuantumScale*red-QuantumScale*green-QuantumScale*blue); in ConvertRGBToHSI()
1082 % ConvertRGBToHSL() transforms a (red, green, blue) to a (hue, saturation,
1087 % void ConvertRGBToHSL(const double red,const double green,
1092 % o red, green, blue: A Quantum value representing the red, green, and
1099 MagickExport void ConvertRGBToHSL(const double red,const double green, in ConvertRGBToHSL() argument
1113 max=MagickMax(QuantumScale*red,MagickMax(QuantumScale*green, in ConvertRGBToHSL()
1115 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSL()
1125 if (fabs(max-QuantumScale*red) < MagickEpsilon) in ConvertRGBToHSL()
1133 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c; in ConvertRGBToHSL()
1135 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c; in ConvertRGBToHSL()
1154 % ConvertRGBToHSV() transforms a (red, green, blue) to a (hue, saturation,
1159 % void ConvertRGBToHSV(const double red,const double green,
1164 % o red, green, blue: A Quantum value representing the red, green, and
1171 MagickPrivate void ConvertRGBToHSV(const double red,const double green, in ConvertRGBToHSV() argument
1185 max=MagickMax(QuantumScale*red,MagickMax(QuantumScale*green, in ConvertRGBToHSV()
1187 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSV()
1197 if (fabs(max-QuantumScale*red) < MagickEpsilon) in ConvertRGBToHSV()
1205 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c; in ConvertRGBToHSV()
1207 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c; in ConvertRGBToHSV()
1223 % ConvertRGBToHWB() transforms a (red, green, blue) to a (hue, whiteness,
1228 % void ConvertRGBToHWB(const double red,const double green,
1233 % o red, green, blue: A Quantum value representing the red, green, and
1240 MagickPrivate void ConvertRGBToHWB(const double red,const double green, in ConvertRGBToHWB() argument
1255 w=MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHWB()
1256 v=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHWB()
1264 f=(fabs(red-w) < MagickEpsilon) ? green-blue : in ConvertRGBToHWB()
1265 ((fabs(green-w) < MagickEpsilon) ? blue-red : red-green); in ConvertRGBToHWB()
1266 p=(fabs(red-w) < MagickEpsilon) ? 3.0 : in ConvertRGBToHWB()
1282 % ConvertRGBToLCHab() transforms a (red, green, blue) to a (luma, chroma,
1287 % void ConvertRGBToLCHab(const double red,const double green,
1292 % o red, green, blue: A Quantum value representing the red, green, and
1314 MagickPrivate void ConvertRGBToLCHab(const double red,const double green, in ConvertRGBToLCHab() argument
1328 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z); in ConvertRGBToLCHab()
1343 % ConvertRGBToLCHuv() transforms a (red, green, blue) to a (luma, chroma,
1348 % void ConvertRGBToLCHuv(const double red,const double green,
1353 % o red, green, blue: A Quantum value representing the red, green, and
1375 MagickPrivate void ConvertRGBToLCHuv(const double red,const double green, in ConvertRGBToLCHuv() argument
1389 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z); in ConvertRGBToLCHuv()