This commit is contained in:
AlgaLaptop
2026-01-05 23:46:47 +01:00
parent 741a2d0fbd
commit f7bb1d7030
+2 -11
View File
@@ -20,13 +20,7 @@ public class PIFReader {
private int[] lenG;
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 {
FileInputStream fis = new FileInputStream(file);
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 {
this.width = in.readBits(16);
this.height = in.readBits(16);