private Area getArea(BufferedImage image) 
	{
		//Assumes Black as Shape Color
		if(image==null) return null;
		
		Area area = new Area();
		Color color = new Color(0,0,0,255);
		Rectangle r;
		int y1,y2;
		
		for (int x=0; x<image.getWidth(); x++) 
		{
			y1=99;
			y2=-1;
            for (int y=0; y<image.getHeight(); y++) 
            {
            	Color pixel = new Color(image.getRGB(x,y));
            	if(isIncluded(color, pixel)) 
            	{
                    if(y1==99) {y1=y;y2=y;}
                    if(y>(y2+1)) 
                    {
                    	r = new Rectangle(x,y1,1,y2-y1);
                    	area.add(new Area(r)); 
                    	y1=y;y2=y;
                    }
                    y2=y;
                }            	
            }
            
            if((y2-y1)>=0) 
            {
        		r = new Rectangle(x,y1,1,y2-y1);
            	area.add(new Area(r)); 
        	}
		}
		
		return area;
	}