Code example for PathDashPathEffect

0
		paint=new Paint(Paint.DITHER_FLAG);
		paint.setColor(Color.BLUE);
		paint.setStyle(Paint.Style.STROKE);
		Path p= new Path();
		p.addRect(0, 0, 2, 2, Path.Direction.CW);
		paint.setPathEffect(new PathDashPathEffect(p, 3, 2, PathDashPathEffect.Style.ROTATE));
		//������ 
		paint.setAntiAlias(true);
		paint.setDither(true);
		this.setImageBitmap(cacheBitmap);
	} 
	public void Init(byte[] data) {
		 
	} 
	//ȫѡ 
	public void selectAll() { 
		startX=0;
		startY=0;
		endX=0;
		endY=0;
		nowX=0;