LEADTOOLS Image Processing (Leadtools.ImageProcessing.Color assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Average Property
See Also 



Gets or sets an array that contains the new average pixel value for the entire image. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property Average As Integer()
Visual Basic (Usage)Copy Code
Dim instance As LightControlCommand
Dim value() As Integer
 
instance.Average = value
 
value = instance.Average
C# 
public int[] Average {get; set;}
C++/CLI 
public:
property array<int>^ Average {
   array<int>^ get();
   void set (    array<int>^ value);
}

Property Value

An array that contains the new average pixel value for the entire image. The size of the array equals one, if Type is LightControlCommandType.Yuv or LightControlCommandType.Gray, or three, if Type is LightControlCommandType.Rgb. If Type is LightControlCommandType.Rgb the first element corresponds to the new blue average value, the second element to the green, and the last element to the red.

Example

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also