public static void removeBlank(BufferedImage img) throws Exception {  
	        int width = img.getWidth();  
	        int height = img.getHeight();  
	        System.out.println("白色："+Color.WHITE.getRGB());
	        System.out.println("黑色："+Color.BLACK.getRGB());
	        BufferedImage newImage = new BufferedImage(width, height,BufferedImage.TYPE_INT_ARGB );
	        
	        
	    for (int y = 0; y < height; ++y) {  
	            for (int x = 0; x < width; ++x) {  
	              /*  if (isBlack(img.getRGB(x, y)) == 1) {  
	                   img.setRGB(x, y, rgb);
	                    break Label1;  
	                }  */
	            	
	            //	System.out.println(img.getRGB(x, y));
	            	img.setRGB(x, y, 255);
	            }  
	        }  
	    ImageIO.write(newImage, "jpg", new File("f:/dd.jpg"));
	/*       Label2: for (int y = height - 1; y >= 0; --y) {  
	            for (int x = 0; x < width; ++x) {  
	                if (isBlack(img.getRGB(x, y)) == 1) {  
	                	img.setRGB(x, y, rgb);
	                    break Label2;  
	            	img.setRGB(x, y, rgb);
	                }  
	            }*/
	        
	        
	        
	        }