
icc.MonochromeInputRestrictedProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jj2000 Show documentation
Show all versions of jj2000 Show documentation
Fork of jpeg2k code from https://code.google.com/p/jj2000/.
This is a dependency for support of compression in Grib2 files in netCDF-java and TDS.
We welcome bug fixes and other contributions to this code.
The newest version!
/*****************************************************************************
*
* $Id: MonochromeInputRestrictedProfile.java,v 1.1 2002/07/25 14:56:56 grosbois Exp $
*
* Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650
* $Date $
*****************************************************************************/
package icc;
import icc .tags.ICCCurveType;
/**
* This class is a 1 component RestrictedICCProfile
*
* @version 1.0
* @author Bruce A Kern
*/
public class MonochromeInputRestrictedProfile extends RestrictedICCProfile {
/**
* Factory method which returns a 1 component RestrictedICCProfile
* @param c Gray TRC curve
* @return the RestrictedICCProfile
*/
public static RestrictedICCProfile createInstance (ICCCurveType c) {
return new MonochromeInputRestrictedProfile(c);}
/**
* Construct a 1 component RestrictedICCProfile
* @param c Gray TRC curve
*/
private MonochromeInputRestrictedProfile (ICCCurveType c) {
super (c); }
/**
* Get the type of RestrictedICCProfile for this object
* @return kMonochromeInput
*/
public int getType () {return kMonochromeInput;}
/**
* @return String representation of a MonochromeInputRestrictedProfile
*/
public String toString () {
StringBuffer rep = new StringBuffer ("Monochrome Input Restricted ICC profile" + eol);
rep .append("trc[GRAY]:" + eol).append(trc[GRAY]).append(eol);
return rep.toString(); }
/* end class MonochromeInputRestrictedProfile */ }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy