Code example for Path

Methods: closeisEmptylineTomoveToreset

0
		// 计算中心点, 用 mBoudsRect.centerX() 代替 
		// mCentrePoint.x = (l + r) / 2f; 
		// mCentrePoint.y = (t + b) / 2f; 
 
		// 初始化裁剪区域 
		mClipPath.reset();
		mClipPath.moveTo(l, t);
		mClipPath.lineTo(r, t);
		mClipPath.lineTo(r, b);
		mClipPath.lineTo(l, b);
		mClipPath.close();
 
		// 设置绘制目标坐标 
		initSrcRect(); 
 
		GLogger.i(TAG, "layout mBoundsRect = is Rect :" + !mBoundsRect.isEmpty() + "," + mBoundsRect.toString() + ", mBoundsBL : " + mBoundsRect.width() / mBoundsRect.height() +", mClipPath.isEmpty() = " + mClipPath.isEmpty());
		// GLogger.i(TAG, "layout mClipPath.isEmpty() = " + mClipPath.isEmpty() 
		// + ", is BoundsRest : " + mClipPath.isRect(mBoundsRect)); 
		GLogger.i(TAG, "layout mClipPath.isEmpty() = " + mClipPath.isEmpty());
	} 
 
	private void initSrcRect() { 
		//mBitmap为null时,等价于 mBitmapRect.isEmpty() 
		if (!mBitmapRect.isEmpty()) {
Connect your IDE to all the code out there  Get Codota for Java