The WriteableBitmap.
The x coordinate of the pixel.
The y coordinate of the pixel.
GetBrightness Method
Gets the brightness / luminance of the pixel at the x, y coordinate as byte.
Syntax
[Extension()]
public static byte GetBrightness( 
   WriteableBitmap bmp,
   int x,
   int y
)

Parameters

bmp
The WriteableBitmap.
x
The x coordinate of the pixel.
y
The y coordinate of the pixel.

Return Value

The brightness of the pixel at x, y.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also