Visual Basic (Declaration) | |
---|---|
Public Property Average As Integer() |
Visual Basic (Usage) | Copy Code |
---|---|
|
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); } |
XAML | |
---|---|
cannot be used in XAML directly.Instead use x:Array Markup Extension. |
XAML Attributes Usage | |
---|---|
<object Average =in > |
Dependency Property Information | |
---|---|
Identifier field | AverageProperty |
Metadata properties set to true | None |
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.For XAML example, refer to LightControlCommandBitmapEffect.
For C#/VB examples, refer to LightControlCommandBitmapEffect.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003