There are two pairs of ImageGear functions for getting and setting the value of an individual pixel.
- IG_DIB_pix_get() and IG_DIB_pix_set() get and set a pixel value as a HIGPIXEL object handle.
- IG_DIB_pixel_get() and IG_DIB_pixel_set() get and set a pixel value into / from a byte array. These two functions take into account the current Pixel Access Mode. If pixel access mode is IG_PIX_ACCESS_MODE_LEGACY, and the image uses a pixel format not supported by the legacy mode, the pixel is converted into the closest available legacy supported format. See Pixel Access Modes for more information.
All pixel access functions consider the coordinates 0,0 as the upper left-hand corner of the bitmap data.