Iterating image data to find the bounding rect
You can get the pixels color values from any part of your canvas. What you get is an array that doesn't have any obvious correlation to the width and height of the area you requested. What gives and how can you iterate through what you got?