ok
This commit is contained in:
@@ -20,13 +20,7 @@ public class PIFReader {
|
|||||||
private int[] lenG;
|
private int[] lenG;
|
||||||
private int[] lenB;
|
private int[] lenB;
|
||||||
|
|
||||||
/**
|
|
||||||
* Lit et décode un fichier PIF.
|
|
||||||
*
|
|
||||||
* @param filepath chemin du fichier PIF
|
|
||||||
* @return l'image RGB décodée
|
|
||||||
* @throws Exception si erreur de lecture
|
|
||||||
*/
|
|
||||||
public RGBImage decodePifFile(File file) throws Exception {
|
public RGBImage decodePifFile(File file) throws Exception {
|
||||||
FileInputStream fis = new FileInputStream(file);
|
FileInputStream fis = new FileInputStream(file);
|
||||||
BufferedInputStream bos = new BufferedInputStream(fis);
|
BufferedInputStream bos = new BufferedInputStream(fis);
|
||||||
@@ -55,10 +49,7 @@ public class PIFReader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Lit l'en-tête du fichier PIF (largeur et hauteur sur 16 bits chacune).
|
|
||||||
* @throws IOException si erreur de lecture
|
|
||||||
*/
|
|
||||||
public void readHeader(BitInputStream in) throws IOException {
|
public void readHeader(BitInputStream in) throws IOException {
|
||||||
this.width = in.readBits(16);
|
this.width = in.readBits(16);
|
||||||
this.height = in.readBits(16);
|
this.height = in.readBits(16);
|
||||||
|
|||||||
Reference in New Issue
Block a user