Android Open Source - Color-Detector Rgb






From Project

Back to project page Color-Detector.

License

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.

Java Source Code

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);
  }

}




Java Source Code List

org.ia.practiques.ClusterToString.java
org.ia.practiques.Cmyk.java
org.ia.practiques.DownloadFragment.java
org.ia.practiques.ImageDialog.java
org.ia.practiques.Kmeans.java
org.ia.practiques.Launcher.java
org.ia.practiques.MyTabListener.java
org.ia.practiques.PhotoFragment.java
org.ia.practiques.Rgb.java
org.ia.practiques.Utils.java