void (Dest dest, Rectangle dstBounds, Rectangle srcBounds, TestColor[] testColors) { UIUtil.drawImage(dest.gr, source, dstBounds, srcBounds, null); for (TestColor t : testColors) t.test(); dest.dispose(); }