This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.embed.swing.SwingFXUtils; | |
import javafx.scene.image.Image; | |
import javafx.scene.image.WritableImage; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws IOException { | |
byte[] bytes = Files.readAllBytes(new File("distortedmesh.msh").toPath()); | |
ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); | |
byteBuffer.position(64); | |
byteBuffer.order(ByteOrder.LITTLE_ENDIAN); | |
int HEIGHT = 8; | |
int WIDTH = 8; |