Home | History | Annotate | Download | only in app

Lines Matching refs:targetRect

789             Rect targetRect = new Rect();
790 targetRect.right = bm.getWidth();
791 targetRect.bottom = bm.getHeight();
793 int deltaw = width - targetRect.right;
794 int deltah = height - targetRect.bottom;
800 scale = width / (float)targetRect.right;
802 scale = height / (float)targetRect.bottom;
804 targetRect.right = (int)(targetRect.right*scale);
805 targetRect.bottom = (int)(targetRect.bottom*scale);
806 deltaw = width - targetRect.right;
807 deltah = height - targetRect.bottom;
810 targetRect.offset(deltaw/2, deltah/2);
815 c.drawBitmap(bm, null, targetRect, paint);