Collect pixel values from the specified list of coordinates.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: (


public ushort[] Collect16bppPixelValues(
	List<IntPoint> points


Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>)
List of coordinates to collect pixels' value from.

Return Value

Returns array of pixels' values from the specified coordinates.


The method goes through the specified list of points and for each point retrievs corresponding pixel's value from the unmanaged image.

Note:For grayscale image the output array has the same length as number of points in the specified list of points. For color image the output array has triple length, containing pixels' values in RGB order.

Note:The method does not make any checks for valid coordinates and leaves this up to user. If specified coordinates are out of image's bounds, the result is not predictable (crash in most cases).

Note:This method is supposed for images with 16 bpp channels only (16 bpp grayscale image and 48/64 bpp color images).


AForge.Imaging..::.UnsupportedImageFormatExceptionUnsupported pixel format of the source image. Use Collect8bppPixelValues() method for images with 8 bpp channels.

See Also