Here you can find the source of getGreen(int c)
public static int getGreen(int c)
//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; } }