Accusoft.ImagXpress13.Net
RGBColorCount Method
Example 




An integer array of red counts.
An integer array of green counts.
An integer array of blue counts.
Returns three arrays, each containing 256 elements, which equate to a count of the red, green, and blue color intensities of the image.
Syntax
'Declaration
 
Public Sub RGBColorCount( _
   ByRef redCounts As Integer(), _
   ByRef greenCounts As Integer(), _
   ByRef blueCounts As Integer() _
) 
'Usage
 
Dim instance As Processor
Dim redCounts As Integer()
Dim greenCounts As Integer()
Dim blueCounts As Integer()
 
instance.RGBColorCount(redCounts, greenCounts, blueCounts)
public void RGBColorCount( 
   out int[] redCounts,
   out int[] greenCounts,
   out int[] blueCounts
)
public: void RGBColorCount( 
   [PARAMFLAG::Out] int[] redCounts,
   [PARAMFLAG::Out] int[] greenCounts,
   [PARAMFLAG::Out] int[] blueCounts
) 
public:
void RGBColorCount( 
   [Out] array<int> redCounts,
   [Out] array<int> greenCounts,
   [Out] array<int> blueCounts
) 

Parameters

redCounts
An integer array of red counts.
greenCounts
An integer array of green counts.
blueCounts
An integer array of blue counts.
Remarks

The returned arrays contain a histogram of intensity values for each of the red, green, and blue components of the current image.

Example
int[] redCounts;
int[] greenCounts;
int[] blueCounts;
using (Processor processor = new Processor(imagXpress1, imageXView1.Image))
{
	processor.RGBColorCount(out redCounts, out greenCounts, out blueCounts);
}
See Also

Reference

Processor Class
Processor Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback