Use IG_DIB_area_get() and IG_DIB_area_set() functions for getting and setting the values of a rectangular area of an image.
Use IG_DIB_area_size_get to get the size of the array for storing a rectangular area of pixels.
All pixel access functions consider the coordinates 0,0 as the upper left-hand corner of the bitmap data.
These functions take into account the current pixel access mode (new or legacy). See Pixel Access Modes for more details.