/// ************************************************************************** /// /// $Id: MatrixBasedRestrictedProfile.java,v 1.1 2002/07/25 14:56:56 grosbois Exp $ /// /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650 /// $Date $ /// *************************************************************************** /// using System; using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType; using ICCXYZType = CSJ2K.Icc.Tags.ICCXYZType; namespace CSJ2K.Icc { /// This class is a 3 component RestrictedICCProfile /// /// /// 1.0 /// /// Bruce A Kern /// public class MatrixBasedRestrictedProfile:RestrictedICCProfile { /// Get the type of RestrictedICCProfile for this object /// kThreeCompInput /// override public int Type { get { return kThreeCompInput; } } /// Factory method which returns a 3 component RestrictedICCProfile /// Red TRC curve /// /// Green TRC curve /// /// Blue TRC curve /// /// Red colorant /// /// Green colorant /// /// Blue colorant /// /// the RestrictedICCProfile /// public static new RestrictedICCProfile createInstance(ICCCurveType rcurve, ICCCurveType gcurve, ICCCurveType bcurve, ICCXYZType rcolorant, ICCXYZType gcolorant, ICCXYZType bcolorant) { return new MatrixBasedRestrictedProfile(rcurve, gcurve, bcurve, rcolorant, gcolorant, bcolorant); } /// Construct a 3 component RestrictedICCProfile /// Red TRC curve /// /// Green TRC curve /// /// Blue TRC curve /// /// Red colorant /// /// Green colorant /// /// Blue colorant /// protected internal MatrixBasedRestrictedProfile(ICCCurveType rcurve, ICCCurveType gcurve, ICCCurveType bcurve, ICCXYZType rcolorant, ICCXYZType gcolorant, ICCXYZType bcolorant):base(rcurve, gcurve, bcurve, rcolorant, gcolorant, bcolorant) { } /// String representation of a MatrixBasedRestrictedProfile /// public override System.String ToString() { System.Text.StringBuilder rep = new System.Text.StringBuilder("[Matrix-Based Input Restricted ICC profile").Append(eol); rep.Append("trc[RED]:").Append(eol).Append(trc[RED]).Append(eol); rep.Append("trc[RED]:").Append(eol).Append(trc[GREEN]).Append(eol); rep.Append("trc[RED]:").Append(eol).Append(trc[BLUE]).Append(eol); rep.Append("Red colorant: ").Append(colorant[RED]).Append(eol); rep.Append("Red colorant: ").Append(colorant[GREEN]).Append(eol); rep.Append("Red colorant: ").Append(colorant[BLUE]).Append(eol); return rep.Append("]").ToString(); } /* end class MatrixBasedRestrictedProfile */ } }