Home | History | Annotate | Download | only in camera

Lines Matching defs:rect

193         RectF rect = new RectF(0, 0,
197 m.mapRect(rect);
199 float height = rect.height();
200 float width = rect.width();
207 deltaY = (viewHeight - height) / 2 - rect.top;
208 } else if (rect.top > 0) {
209 deltaY = -rect.top;
210 } else if (rect.bottom < viewHeight) {
211 deltaY = getHeight() - rect.bottom;
218 deltaX = (viewWidth - width) / 2 - rect.left;
219 } else if (rect.left > 0) {
220 deltaX = -rect.left;
221 } else if (rect.right < viewWidth) {
222 deltaX = viewWidth - rect.right;