copyToNativeImage

fun BufferedImage.copyToNativeImage(target: NativeImage, sourceX: Int = 0, sourceY: Int = 0, targetX: Int = 0, targetY: Int = 0, width: Int = this.width, height: Int = this.height, scratchBuffer: IntArray = IntArray(0)): IntArray