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

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool SetPixelIndex(
	FIBITMAP dib,
	uint x,
	uint y,
	ref byte value
)
Visual Basic (Declaration)
Public Shared Function SetPixelIndex ( _
	dib As FIBITMAP, _
	x As UInteger, _
	y As UInteger, _
	ByRef value As Byte _
) As Boolean
Visual C++
public:
static bool SetPixelIndex(
	FIBITMAP dib, 
	unsigned int x, 
	unsigned int y, 
	unsigned char% value
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
x
Type: System..::.UInt32
Pixel position in horizontal direction.
y
Type: System..::.UInt32
Pixel position in vertical direction.
value
Type: System..::.Byte %
The new pixel index.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also