Lines Matching refs:bounds
30 public static void drawRuleOfThird(Canvas canvas, RectF bounds) {
35 float stepX = bounds.width() / 3.0f;
36 float stepY = bounds.height() / 3.0f;
37 float x = bounds.left + stepX;
38 float y = bounds.top + stepY;
40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p);
44 canvas.drawLine(bounds.left, y, bounds.right, y, p);
49 public static void drawCropRect(Canvas canvas, RectF bounds) {
54 canvas.drawRect(bounds, p);
57 public static void drawShade(Canvas canvas, RectF bounds) {
65 r.set(0,0,w,bounds.top);
67 r.set(0,bounds.top,bounds.left,h);
69 r.set(bounds.left,bounds.bottom,w,h);
71 r.set(bounds.right,bounds.top,w,bounds.bottom);
84 RectF bounds, boolean fixedAspect, int selection) {
88 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.top);
91 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.top);
94 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.bottom);
97 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.bottom);
101 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.top);
104 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.bottom);
107 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.centerY());
110 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY());