Print

Print


Commit in CDMS/src/CDMS/Partridge/OldStuff on MAIN
ImageIOTest.java-551.1 removed
Moved/renamed to Navigator package

CDMS/src/CDMS/Partridge/OldStuff
ImageIOTest.java removed after 1.1
diff -N ImageIOTest.java
--- ImageIOTest.java	11 Oct 2010 00:25:44 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,55 +0,0 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-package CDMS.Partridge.OldStuff;
-
-import java.awt.image.BufferedImage;
-import java.io.File;
-
-import java.io.IOException;
-import javax.imageio.ImageIO;
-
-/**
- *
- * @author richp
- */
-public class ImageIOTest {
-
-    public static void main(String[] args) throws IOException {
-
-        String idir = "f:/CDMS/IZipG16K_Side2/";
-        String odir = "c:/CDMS/IZipG16K_Side2/";
-        String fname = "IZipG16K_Side2-";
-        String oname = "IZipG16K_Side2-";
-        String itype = "BMP";
-        String otype = "png";
-
-        int first = 1;
-        int last = 8585;
-
-        for (int inum = first; inum <= last; inum++) {
-            BufferedImage image = ImageIO.read(new File(idir+fname+inum+"."+itype));
-            if (inum % 100 == 0) System.out.println("Processing file "+inum);
-
-            int onum = inum - first + 1;
-            File outfile = new File(odir+fname+inum+"."+otype);
-
-            ImageIO.write(image, otype, outfile);
-        }
-    }
-
-    private BufferedImage rotate(BufferedImage image) {
-
-        int width = image.getWidth();
-        int height = image.getHeight();
-        BufferedImage rotated = new BufferedImage(width, height, image.getType());
-        for (int row = 0; row < height; row++) {
-            for (int col = 0; col < width; col++) {
-                int pixel = image.getRGB(col, row);
-                rotated.setRGB(width - col - 1, height - row - 1, pixel);
-            }
-        }
-        return rotated;
-    }
-}
CVSspam 0.2.8