createImagePanel

fun createImagePanel(bufferedImage: BufferedImage, draw: Graphics2D.() -> Unit): JPanel

Creates an ImagePanel instance which displays given bufferedImage and allows to draw on it using the given draw function.