Get the pixel color of a 16-, 24- or 32-bit image at position (x, y), including range check (slow access).
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static bool GetPixelColor( FIBITMAP dib, uint x, uint y, out RGBQUAD value ) |
Visual Basic (Declaration) |
---|
Public Shared Function GetPixelColor ( _ dib As FIBITMAP, _ x As UInteger, _ y As UInteger, _ <OutAttribute> ByRef value As RGBQUAD _ ) As Boolean |
Visual C++ |
---|
public: static bool GetPixelColor( FIBITMAP dib, unsigned int x, unsigned int y, [OutAttribute] 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 pixel color.