colormodel.java

来自「图像检索的代码b」· Java 代码 · 共 58 行

JAVA
58
字号
/*
 * ColorModel.java
 * Created on 16. April 2003, 10:30
 *
 * Copyright (C) 2003 Florian Ledermann, Vienna University of Technology
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 * Contact address: ledermann@ims.tuwien.ac.at
 */

package org.vizir.media;

/**
 * Description: Class representing the color model of media data. Currently,
 * only RGB and YUV are supported.
 *
 * @author flo ledermann ledermann@ims.tuwien.ac.at
 * @version $Id: ColorModel.java,v 1.2 2004/02/12 09:20:20 mr Exp $
 */
public class ColorModel {

	/** RGB color space. */
	public static final int RGB = 0;
	/** YUV color space. */
	public static final int YUV = 1;

	private int colorSpace;

	/**
	 * Creates a new color model.
	 * @param colorSpace The color space, either RGB or YUV.
	 */
	public ColorModel(int colorSpace){
		this.colorSpace = colorSpace;
	}

	/**
	 * Returns the color space.
	 * @return The color space, either RGB or YUV.
	 */
	public int getColorSpace() {
		return colorSpace;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?