예제 #1
0
 /** Set RGB color to specified index */
 public void setRGB(int index, int rgb) {
   alpha.setValue(index, MAX_LEVEL);
   red.setValue(index, (rgb >> 16) & 0xFF);
   green.setValue(index, (rgb >> 8) & 0xFF);
   blue.setValue(index, (rgb >> 0) & 0xFF);
   gray.setValue(index, ColorUtil.getGrayMix(rgb));
 }
예제 #2
0
 /** Set ARGB color to specified index */
 public void setARGB(int index, int argb) {
   alpha.setValue(index, (argb >> 24) & 0xFF);
   red.setValue(index, (argb >> 16) & 0xFF);
   green.setValue(index, (argb >> 8) & 0xFF);
   blue.setValue(index, (argb >> 0) & 0xFF);
   gray.setValue(index, ColorUtil.getGrayMix(argb));
 }
예제 #3
0
 /** Set alpha intensity to specified index */
 public void setAlpha(int index, short value) {
   alpha.setValue(index, value);
 }
예제 #4
0
 /** Set gray intensity to specified index */
 public void setGray(int index, short value) {
   gray.setValue(index, value);
 }
예제 #5
0
 /** Set blue intensity to specified index */
 public void setBlue(int index, short value) {
   blue.setValue(index, value);
 }
예제 #6
0
 /** Set green intensity to specified index */
 public void setGreen(int index, short value) {
   green.setValue(index, value);
 }
예제 #7
0
 /** Set red intensity to specified index */
 public void setRed(int index, short value) {
   red.setValue(index, value);
 }