/// <summary> String representation of class</summary>
        /// <returns> suitable representation for class
        /// </returns>
        public override System.String ToString()
        {
            System.Text.StringBuilder rep  = new System.Text.StringBuilder("[MonochromeTransformTosRGB ");
            System.Text.StringBuilder body = new System.Text.StringBuilder("  ");

            // Print the parameters:
            body.Append(eol).Append("ksRGBShadowSlope= ").Append(System.Convert.ToString(ksRGBShadowSlope));
            body.Append(eol).Append("ksRGBShadowCutoff= ").Append(System.Convert.ToString(ksRGBShadowCutoff));
            body.Append(eol).Append("ksRGBShadowSlope= ").Append(System.Convert.ToString(ksRGBShadowSlope));
            body.Append(eol).Append("ksRGB8ShadowSlope= ").Append(System.Convert.ToString(ksRGB8ShadowSlope));
            body.Append(eol).Append("ksRGBExponent= ").Append(System.Convert.ToString(ksRGBExponent));
            body.Append(eol).Append("ksRGB8ScaleAfterExp= ").Append(System.Convert.ToString(ksRGB8ScaleAfterExp));
            body.Append(eol).Append("ksRGB8ReduceAfterExp= ").Append(System.Convert.ToString((ksRGB8ReduceAfterExp)));
            body.Append(eol).Append("dwInputMaxValue= ").Append(System.Convert.ToString(dwInputMaxValue));

            // Print the LinearSRGBtoSRGB lut.
            body.Append(eol).Append("[lut = [short[" + lut.Length + "]]]");

            // Print the FP luts.
            //UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Object.toString' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'"
            body.Append(eol).Append("fLut=  " + fLut.ToString());

            rep.Append(ColorSpace.indent("  ", body));
            return(rep.Append("]").ToString());
        }
Example #2
0
 /// <summary>Provide a suitable string representation for the class </summary>
 public override System.String ToString()
 {
     System.Text.StringBuilder rep  = new System.Text.StringBuilder("[ICCProfile:");
     System.Text.StringBuilder body = new System.Text.StringBuilder();
     body.Append(eol).Append(header);
     body.Append(eol).Append(eol).Append(tags);
     rep.Append(ColorSpace.indent("  ", body));
     return(rep.Append("]").ToString());
 }
Example #3
0
		/// <summary> Representation of a tag table</summary>
		/// <returns> String
		/// </returns>
		//UPGRADE_NOTE: The equivalent of method 'java.util.Hashtable.toString' is not an override method. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1143'"
		public override System.String ToString()
		{
			System.Text.StringBuilder rep = new System.Text.StringBuilder("[ICCTagTable containing " + tagCount + " tags:");
			System.Text.StringBuilder body = new System.Text.StringBuilder("  ");
			System.Collections.IEnumerator keys = Keys.GetEnumerator();
			//UPGRADE_TODO: Method 'java.util.Enumeration.hasMoreElements' was converted to 'System.Collections.IEnumerator.MoveNext' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilEnumerationhasMoreElements'"
			while (keys.MoveNext())
			{
				//UPGRADE_TODO: Method 'java.util.Enumeration.nextElement' was converted to 'System.Collections.IEnumerator.Current' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilEnumerationnextElement'"
				System.Int32 key = (System.Int32) keys.Current;
				ICCTag tag = (ICCTag) this[key];
				body.Append(eol).Append(tag.ToString());
			}
			rep.Append(ColorSpace.indent("  ", body));
			return rep.Append("]").ToString();
		}
        private float[][] fBuf = null;         // Intermediate output of the first LUT operation.

        /// <summary> String representation of class</summary>
        /// <returns> suitable representation for class
        /// </returns>
        public override System.String ToString()
        {
            int i, j;

            System.Text.StringBuilder rep = new System.Text.StringBuilder("[MatrixBasedTransformTosRGB: ");

            System.Text.StringBuilder body = new System.Text.StringBuilder("  ");
            body.Append(eol).Append("ksRGBExponent= ").Append(System.Convert.ToString(ksRGBExponent));
            body.Append(eol).Append("ksRGBScaleAfterExp= ").Append(System.Convert.ToString(ksRGBScaleAfterExp));
            body.Append(eol).Append("ksRGBReduceAfterExp= ").Append(System.Convert.ToString(ksRGBReduceAfterExp));


            body.Append(eol).Append("dwMaxValues= ").Append(System.Convert.ToString(dwMaxValue[0])).Append(", ").Append(System.Convert.ToString(dwMaxValue[1])).Append(", ").Append(System.Convert.ToString(dwMaxValue[2]));

            body.Append(eol).Append("dwShiftValues= ").Append(System.Convert.ToString(dwShiftValue[0])).Append(", ").Append(System.Convert.ToString(dwShiftValue[1])).Append(", ").Append(System.Convert.ToString(dwShiftValue[2]));

            //UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Object.toString' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'"
            body.Append(eol).Append(eol).Append("fLut= ").Append(eol).Append(ColorSpace.indent("  ", "fLut[RED]=  " + fLut[0].ToString())).Append(eol).Append(ColorSpace.indent("  ", "fLut[GRN]=  " + fLut[1].ToString())).Append(eol).Append(ColorSpace.indent("  ", "fLut[BLU]=  " + fLut[2].ToString()));

            // Print the matrix
            body.Append(eol).Append(eol).Append("[matrix ");
            for (i = 0; i < 3; ++i)
            {
                body.Append(eol).Append("  ");
                for (j = 0; j < 3; ++j)
                {
                    body.Append(matrix[3 * i + j] + "   ");
                }
            }
            body.Append("]");


            // Print the LinearSRGBtoSRGB lut.
            body.Append(eol).Append(eol).Append(lut.ToString());

            rep.Append(ColorSpace.indent("  ", body)).Append("]");
            return(rep.Append("]").ToString());
        }
		/// <summary> Construct an ICCMatrixBasedInputProfile based on a
		/// suppled profile file.
		/// </summary>
		/// <param name="f">contains a disk based ICCProfile.
		/// </param>
		/// <exception cref="ColorSpaceException">
		/// </exception>
		/// <exception cref="ICCProfileInvalidException">
		/// </exception>
		protected internal ICCMatrixBasedInputProfile(ColorSpace csm):base(csm)
		{
		}
		/// <summary> Factory method to create ICCMatrixBasedInputProfile based on a
		/// suppled profile file.
		/// </summary>
		/// <param name="f">contains a disk based ICCProfile.
		/// </param>
		/// <returns> the ICCMatrixBasedInputProfile
		/// </returns>
		/// <exception cref="ICCProfileInvalidException">
		/// </exception>
		/// <exception cref="ColorSpaceException">
		/// </exception>
		public static ICCMatrixBasedInputProfile createInstance(ColorSpace csm)
		{
			return new ICCMatrixBasedInputProfile(csm);
		}
		/// <summary> Construct a ICCMonochromeInputProfile corresponding to the profile file</summary>
		/// <param name="f">disk based ICCMonochromeInputProfile
		/// </param>
		/// <returns> theICCMonochromeInputProfile
		/// </returns>
		/// <exception cref="ColorSpaceException">
		/// </exception>
		/// <exception cref="ICCProfileInvalidException">
		/// </exception>
		protected internal ICCMonochromeInputProfile(ColorSpace csm):base(csm)
		{
		}
		/// <summary> Return the ICCProfile embedded in the input image</summary>
		/// <param name="in">jp2 image with embedded profile
		/// </param>
		/// <returns> ICCMonochromeInputProfile 
		/// </returns>
		/// <exception cref="ColorSpaceICCProfileInvalidExceptionException">
		/// </exception>
		/// <exception cref="">
		/// </exception>
		public static ICCMonochromeInputProfile createInstance(ColorSpace csm)
		{
			return new ICCMonochromeInputProfile(csm);
		}
Example #9
0
		/// <summary> ParameterList constructor </summary>
		/// <param name="csb">provides colorspace information
		/// </param>
		protected internal ICCProfile(ColorSpace csm)
		{
			this.pl = csm.pl;
			profile = csm.ICCProfile;
			initProfile(profile);
		}
Example #10
0
 /// <summary> ParameterList constructor </summary>
 /// <param name="csb">provides colorspace information
 /// </param>
 protected internal ICCProfile(ColorSpace csm)
 {
     this.pl = csm.pl;
     profile = csm.ICCProfile;
     initProfile(profile);
 }
 /// <summary> Construct an ICCMatrixBasedInputProfile based on a
 /// suppled profile file.
 /// </summary>
 /// <param name="f">contains a disk based ICCProfile.
 /// </param>
 /// <exception cref="ColorSpaceException">
 /// </exception>
 /// <exception cref="ICCProfileInvalidException">
 /// </exception>
 protected internal ICCMatrixBasedInputProfile(ColorSpace csm) : base(csm)
 {
 }
 /// <summary> Factory method to create ICCMatrixBasedInputProfile based on a
 /// suppled profile file.
 /// </summary>
 /// <param name="f">contains a disk based ICCProfile.
 /// </param>
 /// <returns> the ICCMatrixBasedInputProfile
 /// </returns>
 /// <exception cref="ICCProfileInvalidException">
 /// </exception>
 /// <exception cref="ColorSpaceException">
 /// </exception>
 public static ICCMatrixBasedInputProfile createInstance(ColorSpace csm)
 {
     return(new ICCMatrixBasedInputProfile(csm));
 }
 /// <summary> Construct a ICCMonochromeInputProfile corresponding to the profile file</summary>
 /// <param name="f">disk based ICCMonochromeInputProfile
 /// </param>
 /// <returns> theICCMonochromeInputProfile
 /// </returns>
 /// <exception cref="ColorSpaceException">
 /// </exception>
 /// <exception cref="ICCProfileInvalidException">
 /// </exception>
 protected internal ICCMonochromeInputProfile(ColorSpace csm) : base(csm)
 {
 }
 /// <summary> Return the ICCProfile embedded in the input image</summary>
 /// <param name="in">jp2 image with embedded profile
 /// </param>
 /// <returns> ICCMonochromeInputProfile
 /// </returns>
 /// <exception cref="ColorSpaceICCProfileInvalidExceptionException">
 /// </exception>
 /// <exception cref="">
 /// </exception>
 public static ICCMonochromeInputProfile createInstance(ColorSpace csm)
 {
     return(new ICCMonochromeInputProfile(csm));
 }