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





An array that contains the new average pixel value for those pixels with values between the average pixel value for the entire image and the highest pixel value in the image.

Syntax

Visual Basic (Declaration) 
Public Property UpperAverage As Integer()
Visual Basic (Usage)Copy Code
Dim instance As LightControlCommandBitmapEffect
Dim value() As Integer
 
instance.UpperAverage = value
 
value = instance.UpperAverage
C# 
public int[] UpperAverage {get; set;}
Managed Extensions for C++ 
public: __property int[]* get_UpperAverage();
public: __property void set_UpperAverage( 
   int[]* value
);
C++/CLI 
public:
property array<int>^ UpperAverage {
   array<int>^ get();
   void set (intarray<value>^ value);
}
XAML 
cannot be used in XAML directly.Instead use x:Array Markup Extension.
XAML Attributes Usage 

<object UpperAverage =in >

Dependency Property Information 

Identifier field

UpperAverageProperty

Metadata properties set to true

None

Return Value

An array contain the new average pixel value for those pixels with values between the average pixel value for the entire image and the highest pixel value in the image. The size of the array equals either one if Type is LightControlCommandBitmapEffectsType.Yuv or LightControlCommandBitmapEffectsType.Gray or three if Type is LightControlCommandBitmapEffectsType.Rgb where the first element corresponds to the new blue upper side average value, the second element to the green, and the last element to the red.

Example

For XAML example, refer to LightControlCommandBitmapEffect.

For C#/VB examples, refer to LightControlCommandBitmapEffect.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003

See Also