Set the fill to either a grayscale value or an ARGB int. The problem with this code is that it has to detect between these two situations automatically. This is done by checking to see if the high bits (the alpha for 0xAA000000) is set, and if not, whether the color value that follows is less th
(int rgb)
| 7640 | * of stroke or fill to more directly specify the desired result. |
| 7641 | */ |
| 7642 | protected void colorCalc(int rgb) { |
| 7643 | if (((rgb & 0xff000000) == 0) && (rgb <= colorModeX)) { |
| 7644 | colorCalc((float) rgb); |
| 7645 | |
| 7646 | } else { |
| 7647 | colorCalcARGB(rgb, colorModeA); |
| 7648 | } |
| 7649 | } |
| 7650 | |
| 7651 | |
| 7652 | protected void colorCalc(int rgb, float alpha) { |
no test coverage detected