private static String getGrayShade(float redValue) {
String asciival = " ";
if (redValue >= 69* 256/70)
{
asciival = TEN;
}
else if (redValue >= 68* 256/70)
{
asciival = NINE;
}
else if (redValue >= 67* 256/70)
{
asciival = EIGHT;
}
else if (redValue >= 66* 256/70)
{
asciival = SEVEN;
}
else if (redValue >= 65* 256/70)
{
asciival = SIX;
}
else if (redValue >= 64* 256/70)
{
asciival = FIVE;
}
else if (redValue >= 63* 256/70)
{
asciival = FOUR;
}
else if (redValue >= 62* 256/70)
{
asciival = THREE;
}
else if (redValue >= 61* 256/70)
{
asciival = TWO;
}
else if (redValue >= 60* 256/70)
{
asciival = ONE;
}
else if (redValue >= 59* 256/70)
{
asciival = TEN1;
}
else if (redValue >= 58* 256/70)
{
asciival = NINE1;
}
else if (redValue >= 57* 256/70)
{
asciival = EIGHT1;
}
else if (redValue >= 56* 256/70)
{
asciival = SEVEN1;
}
else if (redValue >= 55* 256/70)
{
asciival = SIX1;
}
else if (redValue >= 54* 256/70)
{
asciival = FIVE1;
}
else if (redValue >= 53* 256/70)
{
asciival = FOUR1;
}
else if (redValue >= 52* 256/70)
{
asciival = THREE1;
}
else if (redValue >= 51* 256/70)
{
asciival = TWO1;
}
else if (redValue >= 50* 256/70)
{
asciival = ONE1;
}
else if (redValue >= 49* 256/70)
{
asciival = TEN2;
}
else if (redValue >= 48* 256/70)
{
asciival = NINE2;
}
else if (redValue >= 47* 256/70)
{
asciival = EIGHT2;
}
else if (redValue >= 46* 256/70)
{
asciival = SEVEN2;
}
else if (redValue >= 45* 256/70)
{
asciival = SIX2;
}
else if (redValue >= 44* 256/70)
{
asciival = FIVE2;
}
else if (redValue >= 43* 256/70)
{
asciival = FOUR2;
}
else if (redValue >= 42* 256/70)
{
asciival = THREE2;
}
else if (redValue >= 41* 256/70)
{
asciival = TWO2;
}
else if (redValue >= 40* 256/70)
{
asciival = ONE2;
}
else if (redValue >= 39* 256/70)
{
asciival = TEN3;
}
else if (redValue >= 38* 256/70)
{
asciival = NINE3;
}
else if (redValue >= 37* 256/70)
{
asciival = EIGHT3;
}
else if (redValue >= 36* 256/70)
{
asciival = SEVEN3;
}
else if (redValue >= 35* 256/70)
{
asciival = SIX3;
}
else if (redValue >= 34* 256/70)
{
asciival = FIVE3;
}
else if (redValue >= 33* 256/70)
{
asciival = FOUR3;
}
else if (redValue >= 32* 256/70)
{
asciival = THREE3;
}
else if (redValue >= 31* 256/70)
{
asciival = TWO3;
}
else if (redValue >= 30* 256/70)
{
asciival = ONE3;
}
else if (redValue >= 29* 256/70)
{
asciival = TEN4;
}
else if (redValue >= 28* 256/70)
{
asciival = NINE4;
}
else if (redValue >= 27* 256/70)
{
asciival = EIGHT4;
}
else if (redValue >= 26* 256/70)
{
asciival = SEVEN4;
}
else if (redValue >= 25* 256/70)
{
asciival = SIX4;
}
else if (redValue >= 24* 256/70)
{
asciival = FIVE4;
}
else if (redValue >= 23* 256/70)
{
asciival = FOUR4;
}
else if (redValue >= 22* 256/70)
{
asciival = THREE4;
}
else if (redValue >= 21* 256/70)
{
asciival = TWO4;
}
else if (redValue >= 20* 256/70)
{
asciival = ONE4;
}
else if (redValue >= 19* 256/70)
{
asciival = TEN5;
}
else if (redValue >= 18* 256/70)
{
asciival = NINE5;
}
else if (redValue >= 17* 256/70)
{
asciival = EIGHT5;
}
else if (redValue >= 16* 256/70)
{
asciival = SEVEN5;
}
else if (redValue >= 15* 256/70)
{
asciival = SIX5;
}
else if (redValue >= 14* 256/70)
{
asciival = FIVE5;
}
else if (redValue >= 13* 256/70)
{
asciival = FOUR5;
}
else if (redValue >= 12* 256/70)
{
asciival = THREE5;
}
else if (redValue >= 11* 256/70)
{
asciival = TWO5;
}
else if (redValue >= 10* 256/70)
{
asciival = ONE5;
}
else if (redValue >= 9* 256/70)
{
asciival = TEN6;
}
else if (redValue >= 8* 256/70)
{
asciival = NINE6;
}
else if (redValue >= 7* 256/70)
{
asciival = EIGHT6;
}
else if (redValue >= 6* 256/70)
{
asciival = SEVEN6;
}
else if (redValue >= 5* 256/70)
{
asciival = SIX6;
}
else if (redValue >= 4* 256/70)
{
asciival = FIVE6;
}
else if (redValue >= 3* 256/70)
{
asciival = FOUR6;
}
else if (redValue >= 2* 256/70)
{
asciival = THREE6;
}
else if (redValue >= 1* 256/70)
{
asciival = TWO6;
}
else
{
asciival = ONE6;
}
return asciival;
}