public static int isBlack(int colorInt) {  
	        Color color = new Color(colorInt);  
	        if (color.getRed() + color.getGreen() + color.getBlue() <= 500) {  
	            return 1;  
	        } 
	      
	        return 0;  
	    }