private static BufferedImage InputImage(String srcImgPath) {  
        BufferedImage srcImage = null;  
        try {  
        	/*Iterator<ImageReader> readers = ImageIO.getImageReadersByFormatName("JPEG");
            ImageReader reader = null;
            while(readers.hasNext()) {
                reader = (ImageReader)readers.next();
                if(reader.canReadRaster()) {
                    break;
                }
            }
            ImageInputStream input =   ImageIO.createImageInputStream(new File(srcImgPath)); 
            reader.setInput(input); 

            //Read the image raster
            Raster raster = reader.readRaster(0, null);
            
            srcImage=new BufferedImage(raster.getWidth(), raster.getHeight(),BufferedImage.TYPE_INT_ARGB_PRE);
            srcImage.getRaster().setRect(raster);*/
            
            FileInputStream in = new FileInputStream(srcImgPath);  
            srcImage = javax.imageio.ImageIO.read(in);  
        } catch (IOException e) {  
            System.out.println("读取图片文件出错！" + e.getMessage());  
            e.printStackTrace();  
        }  
        return srcImage;  
    }