Code example for PathShape

0
		path1.lineTo(150+20, 80+120-50);
		/* ʹ��Щ�㹹�ɷ��յĶ����� */ 
		path1.close();
		 
		//PathShape�������������ֱ��ǿ��Ⱥ͸߶� 
		mShapeDrawable = new ShapeDrawable(new PathShape(path1,150,150));
		 
		//�õ�����paint��������������ɫ 
		mShapeDrawable.getPaint().setColor(Color.BLUE);
		 
		/* ����ͼ����ʾ������ */ 
		mShapeDrawable.setBounds(100, 170, 200, 280);
		 
		/* ����ͼ�� */ 
		mShapeDrawable.draw(canvas);
	} 
}