好象不行。因为有关image.*的包都被安全管理器给禁止了

解决方案 »

  1.   

    终于研究出来了,是用Java2D技术,很简单,但确实花了我不少时间,快点加分吧!
       AffineTransform at = new AffineTransform();
        at.setToRotation(0.5f);
        AffineTransformOp atOp = new AffineTransformOp(at,AffineTransformOp.TYPE_BILINEAR);
        Image a= icon.getImage();
        int w=icon.getIconWidth();
        int h=icon.getIconHeight();
        BufferedImage rotated =new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
        rotated.createGraphics().drawImage(a,0,0,null);//得到变换后的Image
    如果还不清楚,我把源码发给你
      

  2.   

    Rotate an image:import java.applet.Applet; 
     import java.net.*; public class rotateGumby extends Applet { 
       Image img = null; 
       Image rot = null;   int buffer[] = new int[32 * 32];
       int rotate[] = new int[32 * 32];   public void init() { 
        try { 
           MediaTracker tracker = new MediaTracker (this);
           img = getImage(new URL(getDocumentBase(), "gumby.gif")); 
           tracker.addImage (img, 0);
           tracker.waitForAll();
           PixelGrabber grabber = 
             new PixelGrabber(img, 0, 0, 32, 32, buffer, 0, 32);
             try {
             grabber.grabPixels();
               }
           catch(InterruptedException e) {
              e.printStackTrace();
              }
           for(int y = 0; y < 32; y++) {
             for(int x = 0; x < 32; x++) {
               rotate[((32-x-1)*32)+y] = buffer[(y*32)+x];
               }
             }
           rot = createImage(new MemoryImageSource(32, 32, rotate, 0, 32));
           }
        catch (Exception e) { 
           e.printStackTrace();
           }
        }    public void update( Graphics g) { 
        paint(g); 
        }    public void paint(Graphics g) { 
          g.drawImage(img, 0, 0,this); 
          g.drawImage(rot,0, 40, this);
         } 
       }
      

  3.   

    哎呀,又被skyyoung抢先啦!!哈哈agree skyyoung!
      

  4.   

    还有就是利用VRML文件
    不过目前我正在学
      

  5.   

    为什么不用图象FILTER呢,上面的程序虽然能行,但是可通用性不好。