Code example for RectF

Methods: heightisEmptytoStringwidth

0
		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()) {
			final float itemW = this.getWidth();
			final float itemH = this.getHeight();
			final float srcW = mBitmapRect.right;
			final float srcH = mBitmapRect.bottom;
 
			// 等比例进行填充 
Connect your IDE to all the code out there  Get Codota for Java