先产生一个Image对象,然后调用getScaledInstance(int width, int height, int hints) 
方法返回一个缩放好的Image对象。其中hints是指缩放的算法。如下:SCALE_AREA_AVERAGING 
          Use the Area Averaging image scaling algorithm. static int SCALE_DEFAULT 
          Use the default image-scaling algorithm. static int SCALE_FAST 
          Choose an image-scaling algorithm that gives higher priority to scaling speed than smoothness of the scaled image. static int SCALE_REPLICATE 
          Use the image scaling algorithm embodied in the ReplicateScaleFilter class. static int SCALE_SMOOTH 
          Choose an image-scaling algorithm that gives higher priority to image smoothness than scaling speed. static Object UndefinedProperty 
          The UndefinedProperty object should be returned whenever a property which was not defined for a particular image is fetched.