Back to project page Color-Detector.
The source code is released under:
Apache License
If you think the Android project Color-Detector listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.ia.practiques; // ww w . j a v a2 s. c o m /** * This class store an RGB object * * @author Victor Martinez */ public class Rgb { private int red = 0; private int blue = 0; private int green = 0; /** * Constructor of the class from integers * * @param red : integer value for red (0...255) * @param green : integer value for green (0...255) * @param blue : integer value for blue (0...255) */ public Rgb(int red, int green, int blue) { this.red = red; this.blue = blue; this.green = green; } /** * @return red value */ public int getRed() { return (this.red); } /** * @return blue value */ public int getBlue() { return (this.blue); } /** * @return green value */ public int getGreen() { return (this.green); } }