interface IRegion { // get whole image that the region refers to public default WidthAndHeight image() { null; } public Rect bounds(); public int numberOfPixels(); public Pt firstPixel(); public Iterator pixelIterator(); public bool contains(int x, int y); }