Leadtools.Windows.Media.Effects Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
Average Property
See Also 
Leadtools.Windows.Media.Effects.Color Namespace > LightControlCommandBitmapEffect Class : Average Property




Gets or sets an array that contains the new average pixel value for the entire image.

Syntax

Visual Basic (Declaration) 
Public Property Average As Integer()
Visual Basic (Usage)Copy Code
Dim instance As LightControlCommandBitmapEffect
Dim value() As Integer
 
instance.Average = value
 
value = instance.Average
C# 
public int[] Average {get; set;}
Managed Extensions for C++ 
public: __property int[] get_Average();
public: __property void set_Average( 
   int[] value
);
C++/CLI 
public:
property array<int> Average {
   array<int> get();
   void set (intarray<value> value);
}

Return Value

An array that contains the new average pixel value for the entire image. The size of the array equals one, if Type is LightControlCommandBitmapEffectsType.Yuv or LightControlCommandBitmapEffectsType.Gray, or three, if Type is LightControlCommandBitmapEffectsType.Rgb. If Type is LightControlCommandBitmapEffectsType.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: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also