Java Color Green Get getGreen(int c)

Here you can find the source of getGreen(int c)

Description

get Green

License

Open Source License

Declaration

public static int getGreen(int c) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2009-2013 CWI/*from w w w .j  av  a 2s  .c  o  m*/
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
    
 *   * Paul Klint - Paul.Klint@cwi.nl - CWI
 *******************************************************************************/

public class Main {
    public static int getGreen(int c) {
        return (c >> 8) & 0xff;
    }
}

Related

  1. getGreen(int parHex)
  2. getGreenF(int col)