Esempio n. 1
0
 /// <summary>
 /// The conversion method
 /// </summary>
 /// <param name="inColor">The pointer to the input color values</param>
 /// <param name="outColor">The pointer to the output color values</param>
 /// <param name="data">The data that is used to perform the conversion</param>
 public static void Convert(double *inColor, double *outColor, ConversionData data)
 {
     UMath.MultiplyMatrix_3x3_3x1((double *)data.OutSpaceData, inColor, outColor);
     if (outColor[0] < 0)
     {
         outColor[0] = 0;
     }
     if (outColor[1] < 0)
     {
         outColor[1] = 0;
     }
     if (outColor[2] < 0)
     {
         outColor[2] = 0;
     }
     data.OutTransform(outColor, outColor);
 }
Esempio n. 2
0
 /// <summary>
 /// The conversion method
 /// </summary>
 /// <param name="inColor">The pointer to the input color values</param>
 /// <param name="outColor">The pointer to the output color values</param>
 /// <param name="data">The data that is used to perform the conversion</param>
 /// <param name="matrix">The matrix that is used to perform the conversion</param>
 public static void Convert(double* inColor, double* outColor, ConversionData data, double** matrix)
 {
     UMath.MultiplyMatrix_3x3_3x1(matrix[0], inColor, outColor);
 }
Esempio n. 3
0
 /// <summary>
 /// The conversion method
 /// </summary>
 /// <param name="inColor">The pointer to the input color values</param>
 /// <param name="outColor">The pointer to the output color values</param>
 /// <param name="data">The data that is used to perform the conversion</param>
 public static void Convert(double *inColor, double *outColor, ConversionData data)
 {
     data.InTransform(inColor, outColor);
     UMath.MultiplyMatrix_3x3_3x1((double *)data.InSpaceData, outColor, outColor);
 }