Page 1 of 1

Posted: 2006-04-06T17:21:20-07:00
by magick
Variable inPixel can be NULL if your image is an odd height or width. Either check for this condition and bail or use num_row-1 and num_cols-1 in your loops.

Posted: 2006-04-10T09:30:25-07:00
by magick
Another logic error. Reverse i & j in getPixels() and pixelColor(). I is the rows and j is the columns.