LEADTOOLS JPEG 2000 (Leadtools.Jpip.Client.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
NumberOfColorComponents Property
See Also 
Leadtools.Jpip.Client.WinForms Namespace > JpipRasterImageViewer Class : NumberOfColorComponents Property



The NumberOfColorComponents Property includes members that are available as an add-on to the LEADTOOLS Imaging Pro, Document, and Medical Imaging toolkits.

Number of color components in the loaded JPEG2000 file.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property NumberOfColorComponents As Integer
Visual Basic (Usage)Copy Code
Dim instance As JpipRasterImageViewer
Dim value As Integer
 
value = instance.NumberOfColorComponents
C# 
public int NumberOfColorComponents {get;}
C++/CLI 
public:
property int NumberOfColorComponents {
   int get();
}

Property Value

Integer that represents the number of color components in the loaded JPEG2000 file.

Example

This example displays this value after loading a file. For an example, refer to JpipRasterImageViewer.

Remarks

For a gray scale image, this value is one. For a color image (RGB) this value is 3 or more.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Jpip.Client.WinForms requires a JPIP Module and a server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features