Пример #1
0
 private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
   _goodness = in.readFloat();
   int w = in.readInt();
   int h = in.readInt();
   _i = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
   for (int y = 0; y < h; y++) {
     int[] row = (int[]) in.readObject();
     _i.setRGB(0, y, w, 1, row, 0, 0);
   }
 }