31
Graphics / Most efficient way to draw a picture pixel by pixel?
« on: November 13, 2010, 07:00:42 pm »
Think of it this way: row one (top-left corner to top-right corner) is index 0 to Width. To get to row two (right below row one), you have to add the number of pixels in row one, which is = Width. So (y * Width) is your row offset, and x is your column offset.