// This program copies pixel data from a file to the screeen. // It reads 256 by 256 bytes from file pic.data and makes each into a gray pixel. // C code in mpd.c makes such a file as a test. import java.awt.*; import java.awt.image.*; import java.io.*; class Main { static final int X = 1000, Y = 700; static short gs(FileInputStream s) throws IOException, java.io.FileNotFoundException {byte x = (byte)s.read(), y = (byte)s.read(); short z = (short)(((0xff&y)|(x<<8))); if (z