Collect pixel values from the specified list of coordinates.

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


public byte[] Collect8bppPixelValues(
	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 8 bpp channels only (8 bpp grayscale image and 24/32 bpp color images).


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

See Also