Set the pixel color of a 16-, 24- or 32-bit image at position (x, y), including range check (slow access).

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

Syntax

C#
public static bool SetPixelColor(
	FIBITMAP dib,
	uint x,
	uint y,
	ref RGBQUAD value
)
Visual Basic (Declaration)
Public Shared Function SetPixelColor ( _
	dib As FIBITMAP, _
	x As UInteger, _
	y As UInteger, _
	ByRef value As RGBQUAD _
) As Boolean
Visual C++
public:
static bool SetPixelColor(
	FIBITMAP dib, 
	unsigned int x, 
	unsigned int y, 
	RGBQUAD% 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: FreeImageAPI..::.RGBQUAD %
The new pixel color.

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