FreeImage.GetPixelIndex Method

FreeImage.NET

FreeImageGetPixelIndex Method
Get the pixel index of a palettized image at position (x, y), including range check (slow access).

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool GetPixelIndex(
	FIBITMAP dib,
	uint x,
	uint y,
	out byte value
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
x
Type: SystemUInt32
Pixel position in horizontal direction.
y
Type: SystemUInt32
Pixel position in vertical direction.
value
Type: SystemByte
The pixel index.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also