/// <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()); }
/// <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()); }
/// <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()); }