/// <summary> This class analyzes the image to provide colorspace
/// information for the decoding chain. It does this by
/// examining the box structure of the JP2 image.
/// It also provides access to the parameter list information,
/// which is stored as a public final field.
///
/// </summary>
/// <seealso cref="jj2000.j2k.icc.ICCProfile">
/// </seealso>
/// <version> 1.0
/// </version>
/// <author> Bruce A. Kern
/// </author>
publicclassColorSpace
{
/// <summary> Retrieve the ICC profile from the images as
/// a byte array.
/// </summary>
/// <returns> the ICC Profile as a byte [].
/// </returns>
virtualpublicbyte[]ICCProfile
{
get
{
returncsbox.ICCProfile;
}
}
/// <summary>Return the colorspace method (Profiled, enumerated, or palettized). </summary>
virtualpublicMethodEnumMethod
{
get
{
returncsbox.Method;
}
}
/// <summary>Return number of channels in the palette. </summary>
virtualpublicPaletteBoxPaletteBox
{
get
{
returnpbox;
}
}
/// <summary>Return number of channels in the palette. </summary>
virtualpublicintPaletteChannels
{
get
{
returnpbox==null?0:pbox.NumColumns;
}
}
/// <summary>Is palettized predicate. </summary>
virtualpublicboolPalettized
{
get
{
returnpbox!=null;
}
}
//UPGRADE_NOTE: Final was removed from the declaration of 'eol '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
/// <summary>Return a suitable String representation of the class instance. </summary>
publicoverrideSystem.StringToString()
{
System.Text.StringBuilderrep=newSystem.Text.StringBuilder("[ColorSpace is ").Append(csbox.MethodString).Append(Palettized?" and palettized ":" ").Append(Method==MethodEnum.ENUMERATED?csbox.ColorSpaceString:"");
//UPGRADE_NOTE: Final was removed from the declaration of 'ICC_PROFILED '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
//UPGRADE_NOTE: Final was removed from the declaration of 'ENUMERATED '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
//UPGRADE_NOTE: Final was removed from the declaration of 'sRGB '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
publicconstCSEnumsRGB=newCSEnum("sRGB");
/// <summary>colorspace enumeration </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'GreyScale '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
//UPGRADE_NOTE: Final was removed from the declaration of 'sYCC '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
publicconstCSEnumsYCC=newCSEnum("sYCC");
/// <summary>colorspace enumeration </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'Illegal '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
publicconstCSEnumIllegal=newCSEnum("Illegal");
/// <summary>colorspace enumeration </summary>
//UPGRADE_NOTE: Final was removed from the declaration of 'Unknown '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
//UPGRADE_NOTE: Final was removed from the declaration of 'value '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"