Ejemplo n.º 1
0
 /** Set ARGB control point values to specified index */
 public void setARGBControlPoint(int index, Color value) {
   alpha.setControlPoint(index, (short) value.getAlpha());
   red.setControlPoint(index, (short) value.getRed());
   green.setControlPoint(index, (short) value.getGreen());
   blue.setControlPoint(index, (short) value.getBlue());
   gray.setControlPoint(index, (short) ColorUtil.getGrayMix(value));
 }
Ejemplo n.º 2
0
 /** Set a alpha control point to specified index and value */
 public void setAlphaControlPoint(int index, int value) {
   alpha.setControlPoint(index, value);
 }
Ejemplo n.º 3
0
 /** Set a gray control point to specified index and value */
 public void setGrayControlPoint(int index, int value) {
   gray.setControlPoint(index, value);
 }
Ejemplo n.º 4
0
 /** Set a blue control point to specified index and value */
 public void setBlueControlPoint(int index, int value) {
   blue.setControlPoint(index, value);
 }
Ejemplo n.º 5
0
 /** Set a green control point to specified index and value */
 public void setGreenControlPoint(int index, int value) {
   green.setControlPoint(index, value);
 }
Ejemplo n.º 6
0
 /** Set a red control point to specified index and value */
 public void setRedControlPoint(int index, int value) {
   // set control point
   red.setControlPoint(index, value);
 }