See the Examples section of the GetReadWriteBitmapData method for examples.
Function GetPixel (
x As Integer,
y As Integer
) As Color
abstract GetPixel :
x : int *
y : int -> Color
The returned value is a non-premultiplied color with 8 bits per channel in the sRGB color space, regardless of the underlying PixelFormat. The result of the GetColor32 method represents the same range of colors as Color and has a slightly better performance than this method.
Line by line processing is also possible by obtaining the first row by the FirstRow property, getting the pixels by the IReadableBitmapDataRowMovable members and then moving to the next line by the MoveNextRow method.
|This IReadableBitmapData has already been disposed.
|x is less than zero or is greater than or equal to Width.
y is less than zero or is greater than or equal to Height.