Beispiel #1
0
    private byte[] GetByteColorAtIndex(int i)
    {
        double scalar = colorArray.GetTuple1(i);

        double[] dcolor = lut.GetColor(scalar);
        byte[]   color  = new byte[3];
        for (uint j = 0; j < 3; j++)
        {
            color[j] = (byte)(255 * dcolor[j]);
        }
        return(color);
    }