Package com.sksamuel.scrimage.nio
Class FileImageSource
- java.lang.Object
-
- com.sksamuel.scrimage.nio.FileImageSource
-
- All Implemented Interfaces:
ImageSource
public class FileImageSource extends java.lang.Object implements ImageSource
-
-
Constructor Summary
Constructors Constructor Description FileImageSource(java.io.File file)
FileImageSource(java.nio.file.Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
read()
-
-
-
Method Detail
-
read
public byte[] read() throws java.io.IOException
- Specified by:
read
in interfaceImageSource
- Throws:
java.io.IOException
-
-