readNativeImage

inline fun InputStream.readNativeImage(): NativeImage

Read and close stream. Accepts PNG.


fun BufferedSource.readNativeImage(): NativeImage

Read and close source. Accepts JPEG and PNG.


fun File.readNativeImage(): NativeImage

Read from file. Accepts JPEG and PNG.