JavaFX writing bmp image pixel by pixel
问题 I have written a class to read the BMP files with all the necessary headers as stated here "http://www.ece.ualberta.ca/~elliott/ee552/studentAppNotes/2003_w/misc/bmp_file_format/bmp_file_format.htm" The class reads all the necessary headers and for the raw data, it reads them as bytes as shown below - private byte[] calcBytes(String path) throws IOException { //Get the path of the file Path file_path = Paths.get(path); //Return the byte array of the file return Files.readAllBytes(file_path);