Android Open Source - Color-Detector Cmyk






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;
//  w  w w  . ja v  a2s . c  o  m
/**
 * This class store a CMYK object
 * 
 * @author Victor Martinez
 */
public class Cmyk {

  private int cyan = 0;
    private int black = 0;
    private int yellow = 0;
    private int magenta = 0;
    
    /**
     * Constructor of the class from integers
     * 
     * @param cyan: integer value for cyan (0...255)
     * @param magenta: integer value for magenta (0...255)
     * @param yellow: integer value for yellow (0...255)
     * @param black: integer value for black (0...255)
     */
    public Cmyk (int cyan, int magenta, int yellow, int black)
    {
        this.cyan = cyan;
        this.black = black;
        this.yellow = yellow;
        this.magenta = magenta;
    }
    
    /**
     * @return cyan value
     */
    public int getCyan ()
    {
        return (this.cyan);
    }
    
    /**
     * @return black value
     */
    public int getBlack ()
    {
        return (this.black);
    }
    
    /**
     * @return yellow value
     */
    public int getYellow ()
    {
        return (this.yellow);
    }
    
    /**
     * @return magenta value
     */
    public int getMagenta ()
    {
        return (this.magenta);
    }
}




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